When to test?

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