Metrics‎ > ‎

Mean Time to Fix

Definition

Mean Time to Fix is the average time it takes someone to fix the registered defect. 

Calculation

To calculate that metric, you should be tracking following fields in your bug tracker:
  • defect registration date and time 
  • defect resolution date and time
Mean Time to Fix = ((resolved defect resolution time - resolved defect registration time) + ... + (resolved defect resolution time - resolved defect registration time)) / total number of resolved defects

Dimensions

It should be possible to monitor Mean Time to Fix in following dimensions:
  • product/project
  • priority

Presentation

Good visualization could be a set of 2 charts: a bar chart with current values for each priority and a line chart with historical trend of the metric over all priorities. 

Example

For example, there could be 3 resolved defects during the week.

  Defect 1 Defect 2 Defect 3
 Registration date & time 15.09.2010 11:31:03 27.08.2010 15:17:56 26.08.2010 14:33:45
 Resolution date & time 24.09.2010 12:14:43 21.09.2010 10:01:14 21.09.2010 14:46:17

Mean Time to Fix = ((24.09.2010 12:14:43 - 15.09.2010 11:31:03) + (21.09.2010 10:01:14 - 27.08.2010 15:17:56) + (21.09.2010 14:46:17 - 26.08.2010 14:33:45)) / 3 = (9 d 0 h 43 min 40 sec + 24 d 18 h 43 min 18 sec + 26 d 0 h 12 min 32 sec) / 3 = 59 d 19 h 39 min 30 sec/ 3 = 19 d 22 h 33 min 10 sec