how to calculate thermal capacity of hot water boiler