Calculation of remaining reactant mass