Calculation of molar solubility