when to test

When do you test for pregnancy? Couple days or a week after missed period?