The economics of planning