for the calculation of calcium and carbonate ions, I use two equations:
