Calculation of reactants and products