How long to wait to take a pregnancy test?

Alyssa
If I have unregular period, how long after intercourse should I test?