It should be possible, when defining how frequently to repeat a task, to specify a number of repetitions and/or a specific date for the repetitions to stop.