Calculating the pH of a base