how soon can I take a pregnancy test

I had unprotected sex last Saturday and took plan b 40 hours after, but I want to be pregnant and shouldn't have taken it. Might sound dumb but how soon can I take a test?