Formatting duration to HH:MM:SS