Dumb question

Do we ovulate before or after AF? i had a miscarraige last week an im still bleeding its been 8 days. I kno its gross but im still having sex i really dont wanna miss my chance for my rainbow baby.