Determining the mass of the solution