When to test

How long to wait to test 7dpo or 10dpo ?