Calculation of saturated and unsaturated solutions