Adding temperatures in rule script gives unexpected results

Work with Quantity types.

The cause of your problem -

yields a number with units, but this does not behave like a true quantity type in computations.