calculation of thermal energy and how much fuel required for boiler