calculating bmi and estimated energy requirements