Calculation of Gibbs Free Energy