Allow repeating tasks to end on a particular date or after a particular number of repetitions