Ka determination for a weak acid