Adjust temperature calculation