Calculation of Concentrations and pH