How early can you test?

How early can you test? I started my period in a week and I’m 7dpo and I took a test and it was negative?