Calculate energy and protein needs.