pregnancy test

How long after sex should you wait to take a pregnancy test?