Format durations consistently.