Solubility product calculation