CalculateBestFit