Unprotected sex

I just had unprotected sex how long should I wait till I have a pregnancy test