Calculating the Equilibrium Constant