Determining concentration of base