When to tale a Test

When is the best time to take a test? How long after you miss your period?! Thanks