When would best to take a test?

So I had sex on my period, and let my boyfriend cum in me. So there is a 50/50 chance I could get pregnant. When should I take a test?