As pretty much all examples of a menstrual cycle are based on a 28 day cycle (and therefore ovulation being on day 14, i.e. half way through), I always thought that ovulation occurs halfway through a cycle, regardless of the length of the cycle (i.e. a 22 day cycle = ovulation on day 11; 34 day cycle = ovulation on day 17).