Calculation of reactants and products mass