Period..

So it's been a week since I had the unprotected sex and my period is 4 days late. When should I take a test?