When to test?

When should you take a pregnancy test when an expected period hasnt arrived yet?