Added formatting option for duration display