Calculating delta G, delta A, and delta Stotal