When to test?

Cheyenne
How long after can you take a test? From last time having sex, from peak day, from last day of ovulation? Just wondering thank you for the help :)