For a reversible thermodynamic cycle,
where is an inexact differential Eric Weisstein's World of Math giving the amount of heat Q transferred and T is the temperature.
References
Zemansky, M. W. Heat and Thermodynamics, 5th ed.: An Intermediate Textbook New York: McGraw-Hill, p. 215, 1968.