Late period!

So my period hasn't come yet. It was supposed to come I think 4 days ago. My SO and I had unprotected sex on Valentine's Day, which was the day my last period ended. I'm getting kinda worried. If it doesn't come, when is the right time to take a test?