get_total_duration function

Total duration covered