calculate correct desired capacity.