Missed period

How many days should I wait to take a pregnancy test after a missed period ?