Calculation of average temperature change