Days past ovulation

Kathy • TTC baby #2
How many days past ovulation can I take a pregnancy test? And which day do i go by, the day i started ovulating, my peak day, or my last ovulation day?