Calculation of amount of solute needed