When can I take a test

When can I take a pregnancy test? My timeline is really weird.

- Had sex 3 days before my period was supposed to start.

- period still hasn’t came and it’s been 4 days since I was supposed to start (1 week now since sex)

- I am usually super regular and my period only fluctuates a day or two away

- I have been having minor cramps