Scheduler repeat event [SOLVED]

i want to allow user of my page to repeat event, like on this sample
but if i choose repeat daily, it will repeat non stop. In this case, i would like to have a repeat event with an option to choose when to stop.
ok this case is solved