format tick so that durations are shown correctly