Pregnancy Test?

I have eight or so days until my next period. The partially unprotected sex incident happened a few weeks ago (condom slipped off). I took plan b the next day. When should I take a pregnancy test to make sure I'm not with child? 😬