Hormones of the menstrual cycle
A surge of luteinizing hormone triggers ovulation, and the corpus luteum subsequently produces progesterone to maintain the uterine lining in a receptive condition.
A worked example
The luteal phase lasts close to 14 days in most people, so in a 26 day cycle ovulation occurs near day 26 - 14 = day 12.
The mistake people actually make
It's the follicular phase, not the luteal phase, that lengthens or shortens to change the overall cycle length. FSH stimulates the follicle to grow, whereas LH is what ruptures it.