Create capacity.r