Calc the temperature in the temperature example