diff --git a/helpdesk/helpdesk/doctype/hd_service_level_agreement/hd_service_level_agreement.py b/helpdesk/helpdesk/doctype/hd_service_level_agreement/hd_service_level_agreement.py index 523a2e2f4..2f1f1a171 100644 --- a/helpdesk/helpdesk/doctype/hd_service_level_agreement/hd_service_level_agreement.py +++ b/helpdesk/helpdesk/doctype/hd_service_level_agreement/hd_service_level_agreement.py @@ -326,12 +326,11 @@ def calc_elapsed_time(self, start_time, end_time) -> float: or not_in_working_day_list or not self.is_working_time(current_time, working_hours) ): - current_time += timedelta(seconds=1) + current_time += timedelta(minutes=1) continue total_seconds += 1 - current_time += timedelta(seconds=1) - - return total_seconds + current_time += timedelta(minutes=1) + return total_seconds * 60 def get_holidays(self): res = []