when do i ovulate?


so my cycle is 24 days and if i have my period for 7 days do i ovulate the week after my period ends or 2 weeks after? and is ovulation 5 days or 24 hours long? does it matter when you have sex while ovulating?