[Bugfix] fixed multiple bugs with time formatting and duration
calculation