Calculation of mass and concentration