It is just as it said, the total cost divided by the total number of available seats multiplied by the number of miles flown.
The available seat mile, or ASM, is the basic product that airlines produce. The ASMs produced by seats which aren't sold are handled in the same fashion as a produce which spoils in the grocery store.
Similarly, revenue is measured in revenue seat miles which is also referred to as yield.