Pregnancy testing

How many days after missed period should I wait before doing a pregnancy test?