Calculation of temperature differences