convert total_duration into milliseconds