How many days after unprotected sex can you take a pregnancy test?

I had unprotected sex with my boyfriend on March 20th. I took a pregancy test yesterday of, April 5th...showed negative. But I still have no period....