utils: fix duration calculation for strange_duration_example.ts