Calculating BMR and energy needs