[ted] Extract duration (closes #4155)