Calculating the mass of solute needed