Calculating an equilibrium constant from rate constants