How long do you have to be off the pill?

How long do you have to be off the pill before you can get pregnant?