Pregnancy test?

How long after you miss a period can you take a pregnancy test to get accurate results?