public static void Main()
Console.WriteLine(CalculateDailyGrowth(new DateTime(year, month, day), weight, temperature, -50).ToString());
public static double CalculateDailyGrowth(DateTime currentDate, double weight, double temperature,
var sgr = (0.36950435 - 0.00079835856 * weight + 0.00000094916158 * Math.Pow(weight, 2) -
0.00000000059555294 * Math.Pow(weight, 3) + (0.00000000000021480283) * Math.Pow(weight, 4) -
(0.000000000000000044710258) * Math.Pow(weight, 5) + (0.0000000000000000000049685648) * Math.Pow(weight, 6) -
(0.00000000000000000000000022743623) * Math.Pow(weight, 7)) * temperature;
var growth = weight * (sgr / 100);