Pregnancy Test

Ha
What is the earliest you can take a pregnancy test? I know that it's 5 days before missed period, but if you ovulate earlier in your cycle, how many days post ovulation can you test?