Pregnancy test

How long should you wait after sex before taking the test?!!