Calculation of [OH-] and [Ca2+] in a solution