Calculation of solubility product