Ovulation periods?

Kathrine
I'm so confused about ovulation periods and when exactly it happens! If I have a 25 cycle period then when's the best time to have safe sex? And when exactly is the ovulation period?