formatDuration

Helper function that automatically formats a duration into days:hours:minutes:seconds