Solve problem with max & min temperature