Corrected math error on temp