Calculating Pka And Pkb Equations Of State