Calculating pH at the equivalence point