Calculation of reactant amount