The condom broke

Me and my friend had sex in the 5th day of my fertile window (it said 33% risk) and when we're done he noticed the condom had broken. He always pulls out even though we use condoms but he said he didn't pull out all the way on time so he's worried. This happened like a week ago so I'm supposed to get my period soon. I don't think he came inside me but I want to take a test to be sure. Should I take a pregnancy test the same day I'm supposed to get my period or should I wait a little longer? I've never been in this position before so I don't really know how to go about the situation or when I'm supposed to take a test.