how long should i wait

how long after i have sex should i take a pregnancy test?