Factors affecting shortages and surpluses