getWeightChange method

double getWeightChange(
  1. double caloricIntake,
  2. int days
)

Implementation

double getWeightChange(double caloricIntake, int days) {
  double dailyCaloricSurplus = caloricIntake - getCalorieNeedPerDay();
  return dailyCaloricSurplus * days / 7700; // 1 kg of fat = 7700 kcal
}