Total heat is calculated by summing the sensible heat and latent heat transferred in an HVAC system. The sensible heat can be calculated using the specific heat capacity of the substance and the temperature change, while the latent heat can be calculated using the latent heat of vaporization or fusion and the mass of the substance undergoing a phase change. For example, in a cooling coil, the total heat transfer can be calculated by adding the sensible heat transfer due to the temperature change of the air and the latent heat transfer due to the condensation of water vapor.