diff --git a/HRM_Processor.py b/HRM_Processor.py
index 6b4e7c3..b3ed186 100644
--- a/HRM_Processor.py
+++ b/HRM_Processor.py
@@ -30,6 +30,10 @@ class HRM_Processor:
                                                           "voltage"])
         self.output_dict["voltage_extremes"] = voltage_extremes
 
+        ecg_strip_duration = self.determine_ecg_strip_duration(self.input_data[
+                                                                   "time"])
+        self.output_dict["duration"] = ecg_strip_duration
+
     def determine_voltage_extremes(self, voltage):
         """Determines the min and max values of the voltage data
 
@@ -51,3 +55,19 @@ class HRM_Processor:
         voltage_extremes = (voltage_min, voltage_max)
 
         return voltage_extremes
+
+    def determine_ecg_strip_duration(self, time):
+        """
+
+        Parameters
+        ----------
+        time:       np array
+                    Contains the time vector from the CSV file
+
+        Returns
+        -------
+        strip_duration: float
+                        The max time value of the ecg strip = strip duration
+        """
+        strip_duration = np.amax(time)
+        return strip_duration

HRM_Processor needs to determine the duration of an ECG strip
The HRM_Processor should be able to determine the duration of an ECG strip, and write that value to the output dictionary.

Input: numpy array containing time data
Output:  a float containing the maximum value in the time array

The test for this function will be whether or not it returns the maximum value of an input time array.
diff --git a/test_HRM_Processor.py b/test_HRM_Processor.py
index f0f5bac..ef1ec7e 100644
--- a/test_HRM_Processor.py
+++ b/test_HRM_Processor.py
@@ -33,3 +33,16 @@ def test_voltage_extremes(hrm):
 def test_write_outputs_to_dict_voltage_extremes(hrm):
 
     assert hrm.output_dict["voltage_extremes"] == (10.0, 20.0)
+
+
+def test_determine_ecg_strip_duration(hrm):
+    time = np.array([0, 2.2, 5, 7.5])
+
+    strip_duration = hrm.determine_ecg_strip_duration(time)
+
+    assert strip_duration == 7.5
+
+
+def test_write_strip_duration(hrm):
+
+    assert hrm.output_dict["duration"] == 2

pip install -r requirements.txt
parse_log_pytest
requirements.txt
pytest
3.9
requirements.txt
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
coverage==7.8.0
exceptiongroup==1.2.2
execnet==2.1.1
iniconfig==2.1.0
numpy==2.0.2
packaging==24.2
pep8==1.7.1
pluggy==1.5.0
pytest==8.3.5
pytest-cache==1.0
pytest-cov==6.0.0
pytest-pep8==1.0.6
tomli==2.2.1

name: bme590hrm
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.4.4=h6a678d5_1
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=3.0.16=h5eee18b_0
  - pip=25.0=py39h06a4308_0
  - python=3.9.21=he870216_1
  - readline=8.2=h5eee18b_0
  - setuptools=75.8.0=py39h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - tzdata=2025a=h04d1e81_0
  - wheel=0.45.1=py39h06a4308_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - coverage==7.8.0
      - exceptiongroup==1.2.2
      - execnet==2.1.1
      - iniconfig==2.1.0
      - numpy==2.0.2
      - packaging==24.2
      - pep8==1.7.1
      - pluggy==1.5.0
      - pytest==8.3.5
      - pytest-cache==1.0
      - pytest-cov==6.0.0
      - pytest-pep8==1.0.6
      - tomli==2.2.1
prefix: /opt/conda/envs/bme590hrm

test_HRM_Processor.py::test_determine_ecg_strip_duration test_HRM_Processor.py::test_write_strip_duration
test_HRM_Processor.py::test_HRM_Processor_init test_HRM_Processor.py::test_voltage_extremes test_HRM_Processor.py::test_write_outputs_to_dict_voltage_extremes
HRM_Processor.py
HRM_Processor.py