How long to wait

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