When does ovulation occur

Tamika • Hi I am a single mom of 3 kids, I have 2 boys and a girl.
I had sex before my period and after My period ended could i get pregnant at this time and when should i take a pregnancy test?