There are two ways to determine the end of a maintenance plan: either by choosing a number of occurrences or by defining an end date. The number of occurrences corresponds to the number of tasks that will be generated by the maintenance plan. If you enter 30, then 30 tasks will be generated.
Otherwise, you can choose an end date from the calendar section, and the tasks won't be generated anymore after the selected date.

Did this answer your question?