mark_duration function

Mark minimum or maximum durations