Calculated cold junction temperature for thermocouples