Cap duration to interval