Temperature Calculation Formula