src/main/java/seedu/address/model/calculator/CalorieBudget.java
/**
     *
     * @param totalCalorieIn to be used to calculate calorie budget
     * @param totalCalorieOut to be used to calculate calorie budget
     * @param basalMetabolic to be used to calculate calorie budget
     * @return calorie surplus that user can afford to consume
     */
@param totalCalorieIn to be used to calculate calorie budget
@param totalCalorieOut to be used to calculate calorie budget
@param basalMetabolic to be used to calculate calorie budget
@return calorie surplus that user can afford to consume
@param totalCalorieIn to be used to calculate calorie budget @param totalCalorieOut to be used to calculate calorie budget @param basalMetabolic to be used to calculate calorie budget @return calorie surplus that user can afford to consume
public static int calculateCalorieSurplus(int totalCalorieIn, int totalCalorieOut, int basalMetabolic) {
        requireAllNonNull(totalCalorieIn, totalCalorieOut, basalMetabolic);
        double adjustedBasal = PAL * basalMetabolic;
        return (int) (totalCalorieOut + adjustedBasal - totalCalorieIn);
    }
public static int calculateCalorieSurplus ( int totalCalorieIn , int totalCalorieOut , int basalMetabolic ) { requireAllNonNull ( totalCalorieIn , totalCalorieOut , basalMetabolic ) ; double adjustedBasal = PAL * basalMetabolic ; return ( int ) ( totalCalorieOut + adjustedBasal - totalCalorieIn ) ; }
@param totalCalorieIn to be used to calculate calorie budget
 @param totalCalorieOut to be used to calculate calorie budget
 @param basalMetabolic to be used to calculate calorie budget
 @return calorie surplus that user can afford to consume
@param totalCalorieIn to be used to calculate calorie budget @param totalCalorieOut to be used to calculate calorie budget @param basalMetabolic to be used to calculate calorie budget @return calorie surplus that user can afford to consume