Calculation of Heat Energy