calculate total time by timedelta module