selecting duration of tasks