Calculating the amount of solute needed