Thermal battery power calculation