Pregnancy test

How many days should I wait in between sex and taking a pregnancy test to see if I am pregnant