Pregnancy test

What is the earliest you can test if pregnant n not wait for ur due date period and getting accurate results ?