Calculating mean temperature and difference