whats the earliest you can take a Pregnancy test?

How many days past ovulation or how many days before your missed period can you test? And what test brand should you use.