Calculating mass of product and concentration