calculateCapacity