Converting duration to filter