when to test

if i had unprotected sex & missed my period 3 days later, how long should i wait to take a test ?