Calculation of mass of steam required for heating