sex question

i had sex just a couple mintues ago how long should i wait to take a test?