Calculating the acid : base ratio of a buffer