How soon to test?

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