Ovulation

How many days last ovulation can you test and get and accurate result on a pregnancy test?