Total Thermal Energy Equation