Calculating Heat and Temperature