Calculating reactant stoichiometry