/// <summary>
 ///
 /// </summary>
 /// <param name="P"></param>
 /// <param name="myfunc"> please provice mybodyfat function</param>
 /// <returns>Total Calories in the Calories</returns>
 public static double CalculateCalories(UserHealthModel userHealth)
 {
     if (userHealth.UserProfile.Gender.Equals("Male"))
     {
         return(13.397 * (userHealth.Weight / 2.209) + 4.799 * (userHealth.Height * 2.54) - 5.677 * Convert.ToInt32(userHealth.UserProfile.Age) + 88.362);
     }
     else
     {
         return(10 * (userHealth.Weight / 2.209) + 6.25 * (userHealth.Height * 2.54) - 5 * Convert.ToInt32(userHealth.UserProfile.Age) - 161);
     }
 }
        /// <summary>
        ///
        /// </summary>
        /// <param name="P"></param>
        /// <param name="myfunc"> please provice mybodyfat function</param>
        /// <returns>Total Calories in the Calories</returns>
        public static double CalculateCalories(UserHealthModel userHealth)
        {
            double Weighttous = 2.205 * userHealth.Weight;
            double heighttous = 0.0328084 * userHealth.Height * 12;

            if (userHealth.UserProfile.Gender.Equals("Male"))
            {
                return(13.397 * (Weighttous / 2.209) + 4.799 * (heighttous * 2.54) - 5.677 * Convert.ToInt32(userHealth.UserProfile.Age) + 88.362);
            }
            else
            {
                return(10 * (Weighttous / 2.209) + 6.25 * (heighttous * 2.54) - 5 * Convert.ToInt32(userHealth.UserProfile.Age) - 161);
            }
        }