Confused, help

Da

Okay so this may seem like a dumb question but I just read a few articles that confused me about fertility. Do you ovulate right after your period or before? This app shows that I’m ovulating two days after my period ends for 4 days, but I read articles that said you ovulate and then when the egg doesn’t get fertilized it dies and you get your period. I do have a 6 year old already so you would think I would know this kind of stuff but I guess I am just really unaware and confused. Can someone help answer this question please thank you!