Skip to content
The priority of technical debt needs to be translated into person-days and delays

The priority of technical debt should be translated into person-days and delays

At a quarterly planning meeting, I wrote “Payment reconciliation module refactor” as P1, with a single justification: nobody dares touch this code. The product owner asked what happens if we don’t do it. I said it’ll get worse. He nodded and crossed out the line.

Later I figured it out: it wasn’t that he didn’t understand technology. It was that I hadn’t given him something he could calculate.

After that I changed my approach. I stopped discussing whether code is good or bad, and discussed only two columns: extra person-days, and requirements that will slip. Whether technical debt gets scheduled is ultimately a translation exercise—translating what engineers see as “bad” into what the business sees as “expensive.”

First, break apart the term “technical debt”

Voting on it all together, the outcome is almost predictable: the vaguest kind gets cut first, the most urgent kind jumps the queue through firefighting, and the middle kind never gets scheduled. I now split debt into three types, each with a completely different audience.

The first type is actively bleeding. Last month reconciliation had two discrepancies, and finance manually verified them for three days. The criterion is simple: is there a loss figure that finance or customer service can record? If yes, it’s an incident—go through the incident process, don’t compete with requirements for scheduling. If no, check whether it’s the second type. Conversely, if the loss is just “feels like it’ll be a problem later,” don’t force it into the incident category—that drains the credibility of the incident process. If something is already producing measurable losses and you’re still making it compete with requirements for slots, that’s a team problem, not a debt problem.

The second type is accruing interest. Every time we add a payment channel, we have to change if-else in four places and add tests in two. It’s not fatal, but every change costs extra. The counterparty for this debt is the product manager, because the interest ultimately shows up in their delivery cycle.

The third type is option-like. The framework version has been stuck two years back; no impact now, but some day next year it might blow up all at once. Usually only the tech lead cares about it. It should go into a “record but don’t schedule” pool, and be pulled out when a concrete trigger condition appears. Option-like debt is what tech leads most easily overestimate, because they stare at it every day. Forcing it into quarterly planning consumes the trust you’ve earned for the first two types.

How to calculate interest: a rough but usable formula

The formula I use is simple:

Half-year interest = extra cost per change × expected number of triggers in the next half year

Concretely. Adding a payment channel is normally estimated at 3 person-days, but actually takes 5. Of the extra 2 days, about 1.5 go to changing scattered if-else and adding tests. Next half year’s roadmap has 4 channels to integrate. Half-year interest is 6 person-days. Extracting and rewriting that logic takes 12 person-days.

The math isn’t necessarily favorable—12 for 6, a one-year payback period. But it shifts the discussion from “is the code bad” to “when does it pay back.” With a payback period, the product owner can judge: only 1 channel this half year—don’t do it, just record it; 6 channels—then it should be done.

Estimates must be written down, even if rough. A 6 person-days written in a document will be questioned and corrected; “this part is painful” kept in conversation will just be ignored. I also mark a confidence level: trigger count comes from the scheduled roadmap, high confidence; extra cost per change comes from my own gut feel, usually marked low. Low-confidence numbers shouldn’t be used to make the call, but they’re enough to buy a more detailed evaluation. Don’t make up trigger counts either—count them from the roadmap and requirement pool. If you can’t count them, the debt has no business owner for now; don’t calculate interest yet.

Fix cost also needs a rough estimate, ideally estimated by someone else too. Estimating your own debt makes it easy to bake in “refactor while I’m at it” ambitions, and the number comes out optimistic.

On the benefit side, don’t calculate “how much loss was avoided”

Numbers like “how many potential incidents were avoided” convince no one, including me. The incident didn’t happen; you can’t prove the refactor prevented it.

I switch to a reverse question: if this debt isn’t paid, which of the three things already committed for next quarter will slip?

This question forces you to attach the debt to a specific roadmap item. If it can’t be attached, it has no business owner for now—goes into the backlog, doesn’t take a scheduling slot. If it can be attached, it’s no longer “the tech team’s request” but “a prerequisite for that thing.” Don’t attach to something too far out either—attaching to a Q3 next-year requirement is as good as not attaching.

A typical scenario: product wants a multi-dimensional report in 3 weeks, but the data layer requires changing stored procedures for every new dimension, so it actually takes 5 weeks. Now two options sit side by side: slip by two weeks, or spend 4 days first extracting the dimension table. The latter is technical debt, but at this moment it has a clear benefit: turning 5 weeks back into 3. This kind of proposal almost never gets rejected, because it doesn’t make the other side choose—it gives them a cheaper answer.

But it has a precondition: the roadmap must be real. If quarterly goals can be overturned at any time by a big customer’s insert order, the attachment relationship expires within a week—then don’t force the math. Fall back to pooling by type: bleeding goes through incidents, interest-accruing gets recorded in the delivery cycle, option-like is just registered.

One table, recalculated every quarter

I maintain a very plain table. Columns: debt description, type, extra cost per change, expected triggers in the next half year, half-year interest, fix cost, payback period, attached roadmap item, confidence.

Don’t chase full columns in the first version. Fill three first—debt description, half-year interest, attached item—run it for a quarter, then add the rest.

There’s only one rule: if the attached roadmap item column can’t be filled in, it doesn’t enter the planning meeting. This rule has saved me a lot of arguments, and forces me to think clearly about who it actually serves before proposing it.

Keep the table somewhere the whole team can see it, not just on your own computer. Only when others can check it will someone come question your numbers, and only then will the numbers get accurate.

Recalculate trigger counts periodically, because the roadmap changes and interest changes with it. Sometimes after calculating you’ll find a debt’s payback period is just over a year—pull it, leave it in the table, and wait for trigger counts to rise. Also record the time a proposal was crossed out; next round check whether trigger counts changed, and if so, re-propose.

A few communication details I’ve learned the hard way:

  • Don’t use the word “refactor”—it sounds unbounded. Change it to “move X from A to B,” scoped small enough to estimate and accept.
  • Push only one at a time. Three at once gets treated as the tech team asking for budget.
  • Proactively offer the “don’t do it” version: if this debt isn’t paid, how requirements get scheduled and how long they’ll slip. Only when the other side has an exit will they listen to your proposal.
  • Allow yourself to be persuaded. My current criterion is to proactively push only when payback is within 6 months; anything beyond that is just registered. This threshold is my own guess, not yet backed by enough data, and may need adjusting by team size.

Next planning meeting I’ll bring only three rows, each with a payback period and an attached requirement name. If all three get crossed out, then either my math was wrong or this quarter’s business genuinely shouldn’t pay down debt. I accept both outcomes—at least it’s more useful than the four words “the code is bad.”

About this Post

This post is written by Lu's Blog, licensed under CC BY-NC 4.0.

#Collaboration #Engineering Management #Technical Debt

Comments