Calculation of solubility and saturation