Pill and pregnant

I've been taking the pill for a little over two years and recently stopped how long before I can get pregnant?