Calculation of Available-Energy Quantities