How is balance calculated in the HSEView Demand & Capacity component?

Balance = Capacity minus Demand