 joules (J);1 calorie = 4.2 kJ).Energy used for metabolism will be
R = C - (F + U + P) 
Energy used in the maintenance will be
R + F + U = C - P

Energy budget allocation varies for endotherms and ectotherms.Ectotherms rely on the environment as a heat source while endotherms maintain their body temperature through the regulation of metabolic processes.