plan b

I had unprotected sex and he came in me. I had sex 5 days before my expected period. I took plan b two days after sex. I'm just wondering when should I take a pregnancy test