distribute demand and capacity