The usable margin of a ticket is the time left on its service clock minus the time the work still needs: handoff, approval, execution and verification. A ticket with an hour left can be riskier than one with twenty minutes left if the first is waiting for an approval that may take an hour. Rank the queue by margin, impact and who can act, not by the countdown alone.
Why sorting by time remaining falls short
Most service tools show a countdown on every ticket, so the natural sort is least time first. But a countdown answers one question: how long is left? It does not answer the question that matters: is what is left enough to finish what is needed? A ticket with 25 minutes left and a staged fix needing 10 minutes is safe. A ticket with 50 minutes left that needs another team to accept it and then 20 minutes of work may be in trouble.
A status label such as “awaiting approval” tells you where the ticket is, not whether there is time to act. And be careful with dashboards that show the average age of open tickets: an average can look healthy while one ticket is minutes from breaching. Contracts are breached by the exception, not the average.
How to calculate the usable margin
Margin = time remaining on the applicable clock – time needed to reach the agreed outcome. Two points need care.
Use the critical path, not the sum of steps
Some steps run in parallel and some must wait. If a provider can prepare a change while the identity team considers an approval, the time needed is the longer of the two paths plus execution. If approval must come before any preparation, the steps are sequential. Write down which assumption you used so the other party can correct it. Note that parallel work only helps when preparation is the longer path: if approval is the long pole, preparing faster does not shorten the wait. Shortening it means asking for an earlier decision.
Work with a range, not a point
“Thirty minutes” suggests precision you do not have. Estimate a minimum and a maximum and you get an optimistic and a pessimistic margin. If the pessimistic margin is negative, the ticket deserves early action or escalation even when the optimistic margin looks comfortable.
A worked example (invented figures)
This example is invented, with invented numbers, to show the method; it does not describe a real organisation. At 11:00 a service desk at a distribution company has five tickets:
- Ticket 1: 80 minutes left. Approval 40 to 55 minutes, then execution 15 to 20. Work is 55 to 75, so the margin is +5 to +25.
- Ticket 2: 25 minutes left. Fix ready, needs 10 to 14 minutes. Margin +11 to +15.
- Ticket 3: 50 minutes left. Queue acceptance 10 to 30, then work 15 to 20. Work is 25 to 50, so the margin is 0 to +25.
- Ticket 4: 35 minutes left. Rollback approval 10 to 20, then change 12 to 18. Work is 22 to 38, so the margin is -3 to +13. Many users are affected and the rollback is reversible.
- Ticket 5: 70 minutes left. Privileged access request with a missing approval timestamp. Work cannot be estimated.
Sorted by countdown, Ticket 2 comes first. But it is the safest: the fix is ready and all you need is confirmation that the engineer has started. Ticket 4 has a negative pessimistic margin, wide impact and a reversible action, so it gets the first call: ask the change authority for a decision, state how many users are affected and name the proposed action. Ticket 3 has a pessimistic margin of zero, so it needs a named owner to accept it. Ticket 1 has a positive but narrow margin; asking the identity lead for a realistic decision time is enough for now. Ticket 5 should not be ranked by margin at all: missing evidence of approval plus a privileged request calls for an authorised human review route.
More than one ranking can be defensible, provided you can explain the impact, what an intervention can realistically change, and whether the action is reversible. Delegate what you can: the provider should keep routine execution moving without waiting for the service owner on every ticket, with a named owner and a time to confirm.
Know exactly how the clock works
Before you trust any margin calculation or model, fix the contractual clock: business calendar, priority change rules, valid pauses and the definition of resolution. If the clock pauses while waiting for the user but not while waiting for an internal team, your calculation must reflect that. It should be reproducible: the same ticket and clock produce the same margin for anyone. We cover those foundations in SLA, OLA, SLI and SLO: How to Define a Service Measure You Can Defend.
Testing an early-warning rule without leaking the answer
If you add a model that predicts breaches, do not accept its results until you have rebuilt what was known at decision time. Final resolution codes, post-breach timestamps and later priority changes leak the answer into training. Test on a later period than the one used for development, and compare against a simple baseline: rank by earliest due time, with the same queue and workload. Keep linked ticket families on one side of the split.
Another invented example: 40 eligible cases, of which two independent reviewers judge that 12 had a useful intervention available. The simple rule flags 8 cases: 5 actionable, 3 timely. The model flags 8: 6 actionable, 5 timely. At matched workload, timely coverage is 3 of 12 versus 5 of 12, two extra timely warnings. That justifies a limited pilot, not a final verdict on a sample this small. Check where the two extra warnings occurred, whether the reviewers had equivalent evidence, and whether the desk could really have acted at that moment.
Measure lead time against the last useful time to intervene. A warning that arrives 25 minutes before the deadline when the action needs 30 is five minutes late for that action, though it may still help a communications decision. Say which decision you are measuring before you classify the warning. Finally, compare policies at the same review capacity and keep cases that always need a human, such as privileged requests, in a separate workflow so shared queue limits never suppress them.
Common mistakes
- Sorting by countdown without estimating remaining work.
- Adding all steps instead of following the critical path.
- Using a single number where a range is honest.
- Trusting average ticket age as a risk signal.
- Evaluating a model with information not available at decision time.
- Letting cases with missing evidence into an automatic ranking.
How to start this week
Take a snapshot of your queue at a busy hour and add two columns per ticket: remaining work (minimum and maximum) and margin. See which tickets change position. If you then want to go deeper into AI-assisted monitoring and incident prevention, the course AI-Powered ITSM: Monitoring, Protection & Incident Prevention covers it in a week. Earlier pieces in this series show how to set alert thresholds that reach an operator in time and how to group related alerts without hiding independent incidents. This topic is also available in Arabic: اقرأ هذا الموضوع بالعربية.
Frequently asked questions
Do I need an AI model to calculate margin?
No. A spreadsheet is enough to start, and it is also the baseline any model must beat before you adopt it.
What if I cannot estimate the work needed?
Record it as unknown and do not guess a number. Ask the owner of the step for an estimate, or route the ticket to human review, especially where privileges are involved.
Does a negative margin mean the SLA will definitely be breached?
No. It is the pessimistic case. It means a plausible scenario exceeds the time, which justifies earlier action or escalation.
How do I balance impact against margin?
Margin tells you urgency; impact tells you importance. A reversible change protecting many users may deserve the first call even if another ticket has a worse pessimistic margin.
How many alerts should reviewers handle in a trial?
Match the real capacity of the desk. If it can review ten per shift, compare the top ten from each policy using a tie-break rule fixed in advance.










