better formatting of duration in seconds