Stav dette: Applications of thermodynamics