When can I take the pregnancy test?

So I had sex during my fertile days...and I really would like to know when I could take the test. Thank you!