Temperature conversion and calculation