Calculating mass of solute in a solution