CCCONFRONTO
CIBERNÉTICO
Menu

FREE TOOL · INCIDENT RESPONSE METRICS

Measure response.
Define the clock.

Calculate MTTD and recovery time with separate containment measurements. Explore a fictional sample, compare mean and median, and download the definitions with your results.

Your inputs are processed in this browser. This tool does not send the entered durations to the site and does not require an account.

Usar a calculadora em português ↗

Use consistent time boundaries

Enter one incident per row. Use three durations in minutes, separated by semicolons: initial activity to detection; detection to containment; detection to recovery.

The starting numbers are fictional. Decimal points and decimal commas are accepted. Use semicolons to separate the three values, and the same definitions for every incident.

What does this calculator mean by MTTD and MTTR?

MTTD is the arithmetic mean of the duration from known or estimated initial activity to detection. If the initial activity time is uncertain, preserve that uncertainty in the source record. Do not treat the first available log as proof of the true start of an intrusion.

Containment time is shown separately as the duration from detection to containment. MTTR is explicitly defined here as detection to recovery. Organisations use this abbreviation in different ways, so a comparison needs a shared definition. These three measurements use minutes and do not include a separate ticket-closure clock.

For this exercise, containment must occur no later than recovery. The parser rejects a recovery duration smaller than the containment duration. If your operational records describe partial containment or recovery of individual services, first define which service and completion condition each duration represents.

A worked example you can reproduce

For the three fictional incidents above, detection durations are 60, 180 and 30 minutes. Their sum is 270; dividing by three gives a mean of 90 minutes. After sorting the values to 30, 60 and 180, the median is 60 minutes.

The containment durations have a mean of 25 minutes, and the detection-to-recovery durations have a mean of 140 minutes. Those two clocks both begin at detection; adding them would count overlapping time twice.

P90 uses the nearest-rank method: sort a column, multiply its count by 0.9, round that position upward and select the value at that position. With three incidents, the selected position is the third, so P90 is the largest observation: 180, 45 and 240 minutes for the three columns. It describes this sample and is not a stable estimate of future performance.

Read the numbers with their limitations

A lower mean can reflect simpler incidents, different selection criteria or a changed time boundary. It does not establish that a team made better decisions. Compare similar cases and examine impact, recurrence, evidence quality and recovery conditions alongside elapsed time.

Do not silently remove open incidents or records with missing timestamps. Document the selection window, incident count, exclusions and uncertainty. A mean based only on closed incidents can leave out the longest unresolved cases. This calculator does not estimate missing durations or perform a time-to-event analysis.

Accepted durations are finite, non-negative numbers up to 52,560,000 minutes, with at most 10,000 incidents per calculation. Blank lines are ignored; incomplete rows, negative values and text are rejected. Results are displayed with at most two decimal places, while the calculation uses the supplied numeric values.

Keep the definitions with the report

The text download contains the incident count, unit, time boundaries, mean, median, nearest-rank P90, sample-size note and source link. It contains aggregate results rather than the original incident rows. The file is generated locally after a successful calculation.

Use a fictional sample when demonstrating the tool to students or colleagues. The useful outcome is a shared measurement definition and an explanation of what the data can and cannot support.

ABOUT THE BOOK

Confronto Cibernético

Hiago Kin Levi's book, published by Brasport, explores advanced persistent threats, incident response and defensive coordination. The book is in Portuguese; this calculator is available in English and Portuguese.

View the book editions ↗