National energy balance