Pregnancy test?

I had sex a day before my period was suppose to come but it’s been 6 days and nothing. When would be an ideal time to do a test?