Period after birth control

When should I take a pregnancy test after stopping birth control

We’ve had lots of unprotected sex but some people’s periods don’t come back for months so I don’t know