Calculation of reactant quantities