Pregnancy test

How long after sex should I wait to take a test? I don’t wanna wait for my period.

I had sex on the 4th day of my period and don’t really wanna wait a whole month.