The Margin Case Bahman Shadmehr

Worked example · for finance review

What applying AI to one operational process actually costs, and what it actually returns

A complete business case with the assumptions on the page rather than in my head. Payback in the base case is fourteen months, year one is negative, and the downside is capped at the build fee. If those numbers had been better I would have suspected them.

Prepared forFinance directors and operations leads evaluating a first AI project
Scope of exampleOne operational process, 14 people partially involved
HorizonThree years, undiscounted
BasisIllustrative model. Your figures replace every input below.

Summary and recommendation

Proceed to a two-week assessment. Do not commit to a build yet.

A process currently consuming 3,542 hours a year at a loaded cost of $191,268 can plausibly release 42% of that time. After an adoption discount, the recurring benefit is $68,283 a year against a one-off investment of $44,000 and running costs of $9,600 a year.1

Year one is negative, because the investment lands before the benefit ramps. The case is made in years two and three. Anyone presenting this as a first-year saving is either modelling badly or hoping you won't check.

The recommendation is deliberately smaller than the case: commit $6,000 to a two-week assessment, which produces measured figures to replace the estimates below. If the assessment says the automatable share is nearer 25% than 42%, you will have spent $6,000 to avoid spending $38,000.

Payback14 months
Year 1 net−$12,877
3-year net+$104,489
Maximum loss$44,000
§ 1

The baseline, measured before anything is proposed

Every business case for this kind of work fails in the same place: the baseline is asserted rather than measured. "It takes about a day" becomes a number in a spreadsheet, and no one can say afterwards whether the project worked.

The figures below are the shape of a typical mid-market operational process — invoice handling, order exceptions, customer onboarding, claims triage. They are illustrative. The assessment replaces them with observed values.

Table 1 — Baseline annual cost of the target process
Input Value Derivation
People touching the process 14 observed
Hours each per week on it 5.5 observed
Working weeks per year 46 excl. leave, holidays2
Loaded cost per hour $54 salary × 1.3
Annual hours on the process 3,542 14 × 5.5 × 46
Annual cost of the process $191,268 3,542 × $54

Note that this is a cost of effort, not a cost of failure. It excludes errors, rework, delayed cash collection and customer impact — all of which are real and none of which I will estimate for you without evidence. If those matter in your process, the case is better than this page shows.


§ 2

What is being bought, and what it costs

The intervention is not "AI." It is a specific system that removes named steps from a named process: reading and extracting from documents, classifying and routing incoming work, assembling information a person currently gathers by hand, and drafting output for a person to check rather than compose.

Table 2 — Investment and running cost
Item Amount Timing
Assessment — measure the baseline, size the opportunity $6,000 month 0
Build — design, integration, evaluation, deployment $38,000 months 1–3
Total one-off investment $44,000
Model and infrastructure $3,600 per year3
Maintenance and change $6,000 per year
Total running cost $9,600 per year

Model and infrastructure costs are billed by your providers directly to you, not resold through me. Maintenance assumes your team owns day-to-day operation with occasional support; a full retainer costs more and is only worth it if your process changes often.


§ 3

The three-year case, with year one shown honestly

Benefit is discounted twice before it reaches this table: once for the share of work that is realistically automatable (42%), and again for adoption (85%), because some people will keep doing it the old way for a while and some cases will always route to a human.

Table 3 — Three-year cash view, undiscounted
Line Year 1 Year 2 Year 3
Gross recoverable value $80,333 $80,333 $80,333
Adoption factor 85% 85% 85%
Realised benefit at full run-rate $68,283 $68,283 $68,283
Ramp — live from month 5, full by month 8 55% 100% 100%
Benefit in year $37,556 $68,283 $68,283
Less: investment −$44,000
Less: running cost −$6,432 −$9,600 −$9,600
Net in year −$12,877 +$58,683 +$58,683
Cumulative −$12,877 +$45,806 +$104,489

Payback falls in month fourteen. If your approval process requires a first-year return, this project will not pass it and you should not force it through. The right answer in that case is a smaller scope with a shorter build, not a more optimistic spreadsheet.


§ 4

Sensitivity: the two inputs that actually move the answer

Everything else in the model is roughly knowable. These two are estimates until a pilot measures them, so the case should be judged across the range rather than at the point estimate.

Table 4 — Months to payback
Automatable share ↓   Adoption → 70% 85% 100%
30% — conservative 19 mo$40.2k/yr 17 mo$48.8k/yr 15 mo$57.4k/yr
42% — base case 15 mo$56.2k/yr 14 mo$68.3k/yr 13 mo$80.3k/yr
55% — optimistic 13 mo$73.6k/yr 12 mo$89.4k/yr 11 mo$105.2k/yr

The full range is 11 to 19 months. Even the pessimistic corner pays back inside two years, which is the useful finding here — the decision is not especially sensitive to getting these estimates exactly right, and that is unusual enough to be worth stating.

Be suspicious of any vendor quoting an automatable share above 60% before measuring your process. In my experience the honest number sits between 30% and 50% for most operational work, and the gap between a demo and a deployment is almost entirely made of the cases nobody showed you.


§ 5

Every assumption, stated

If you disagree with one of these, change it and the case changes. That is the point of writing them down rather than embedding them in a conclusion.

A1Working weeks per yearExcludes leave, public holidays and the weeks around them when little gets done46
A2Loaded cost multiplier on salaryEmployer tax, benefits, equipment, overhead allocation1.30×
A3Share of process time realistically automatableThe single largest source of error in this model42%
A4Adoption factor at steady stateNot everyone uses it, not every case routes through it85%
A5Ramp — live month 5, full run-rate by month 8Year one realises 55% of the annual benefit55%
A6Benefit persists at the same level in years 2 and 3Assumes maintenance is funded; without it, decay is realflat
A7No headcount reduction is assumedBenefit is recovered capacity, not payroll removed — see §70
A8No value attributed to error reduction or faster cycle timeBoth are real; neither is estimated without evidence$0
A9Discount rate appliedThree-year figures are undiscounted; apply your own WACC if materialnone

A7 and A8 pull in opposite directions and roughly cancel in most cases I have seen. A7 makes the case conservative; A8 makes it more so. If your finance function values recovered capacity at zero, this project does not pay back at all and you should read §7 before going further.


§ 6

What could make this fail, and what it would cost

The automatable share is far lower than estimatedMost likely failure. Probability: moderate
Caught by the assessment before the build is committed. Cost of finding out: $6,000. This is the entire reason the assessment is separately priced rather than bundled.
The system is accurate but nobody uses itSecond most likely. Probability: moderate
Mitigated by putting it inside the tools people already use rather than a new application, and by measuring adoption as a delivery metric rather than assuming it. Residual exposure sits in the adoption sensitivity above.
Accuracy degrades after handoverProbability: high, if unfunded
Processes change, models are deprecated, source data drifts. The $6,000 annual maintenance line exists for this. Removing it from the budget does not remove the cost, it defers it into a rebuild.
The recovered time is not redeployedProbability: high, if not planned
Four hours a week returned to fourteen people is only worth something if it goes somewhere — a backlog cleared, growth absorbed without hiring, a role not backfilled. Decide this before the build, not after.
Data cannot leave your infrastructureProbability: known in advance
Local models are viable and materially less capable, which lowers the automatable share by roughly a third in my experience. Establish this in week one; it changes the case rather than ending it.
The build overrunsProbability: low, by construction
The build is quoted at a fixed price after the assessment has measured the process. Overrun is my exposure, not a change request. That is only possible because the assessment happens first.

§ 7

The uncomfortable question: is recovered time actually money?

It depends entirely on what happens next, and this is where most AI business cases quietly cheat. Recovering 1,488 hours a year does not produce $68,283 of cash unless one of the following is true:

  • You avoid a hire you would otherwise have made. The cleanest version. Growth is absorbed by the existing team, and the saving is the salary you did not add.
  • You reduce headcount. Real, and I would rather you say so at the start than discover it in month three — it changes what gets built and how success is measured.
  • The time goes to work that earns. Sales conversations, collections, backlog that was costing you elsewhere. Requires someone to actually direct it, or it dissipates.
  • You accept it as capacity rather than cash. A legitimate answer, but then this is a resilience and service-quality investment, and it should be judged against that bar rather than a payback period.

If none of those four applies, the honest conclusion is that this project does not pay back. I would rather establish that in a first conversation than at the end of a build. It is the question I ask before quoting.


§ 8

Engagement structure and terms

Prices are fixed and published. The sequencing exists so that the largest commitment is made with measured figures rather than estimated ones.

AssessmentTwo weeks. Measures the baseline, tests the automatable share on real cases, produces the version of this document with your numbers in it. Fee credited in full against a build. 2 weeks $6,000
BuildSix to eight weeks. Fixed price agreed after the assessment. Includes evaluation against an accuracy bar you set, deployment into your existing tools, monitoring, runbook and handover. 6–8 weeks $38,000typical
MaintenanceOptional and honestly optional. Quarterly accuracy review, model upgrades tested before they ship, changes as the process evolves. Many clients run this internally after handover. annual $6,000

Downside is capped at $44,000 and in practice at $6,000, because the assessment is designed to be a stopping point. Roughly speaking, if the measured automatable share comes in below 25% I will recommend against the build in writing.

Everything is built in your infrastructure, in your repositories, with documentation. There is no licence, no hosted dependency and nothing that stops working if I do. That matters for the risk register as much as for the budget.


§ 9

Who prepared this

Bahman Shadmehr. Eight years building production backend systems where quiet failure was expensive — automated trading platforms placing orders on the Texas wholesale power market and US equities, a national payment gateway decomposed from a monolith while it was live, and the data infrastructure and monitoring underneath all of it.

That work is the reason this page is a spreadsheet rather than a demonstration. Systems that run unattended are judged on measured behaviour over time, not on how they look when someone is watching. The same standard should apply before you spend $44,000.

Selected engagements
2024 — 2025 Automated energy trading, ERCOT — order pipeline on GCP, health metrics and anomaly alerting
2023 — 2024 US equities trading platform — AWS services on the trading path
2022 — 2023 Vgang — Kubernetes platform and integration microservices
2020 — 2021 Zibal payment gateway — monolith to microservices, Prometheus and Grafana
2017 — 2020 Rahpa — async backends and real-time tracking systems

Remote, UTC+3 — European hours and US mornings. Two clients at a time. 76 technical posts · LinkedIn

1 All figures illustrative and rounded to the nearest dollar for arithmetic transparency, not to imply precision. Your assessment replaces every input.

2 46 weeks rather than 52 is deliberate. Models built on 52 weeks overstate annual benefit by roughly 13% before anything else goes wrong.

3 Model and infrastructure costs vary with volume; $3,600 a year suits a process of this size. Billed by your providers directly, not resold.

Prepared as a template. This document exists so that a finance function can interrogate the method before commissioning anything. If a figure looks wrong for your business, it probably is — that is what the assessment is for.

Next step

Send me one process and I'll return this document with your numbers in it

Roughly how many people touch it, how long it takes, and what triggers it. That is enough for a first pass. If the case doesn't clear your hurdle rate, I'll tell you before you've spent anything.

info@bshadmehr.me
Book a two-week assessment

Fixed fees, published Reply within one business day Remote · UTC+3

Useful in a first message

  1. The process, and what triggers it.
  2. How many people touch it, and roughly what they cost.
  3. How many times it runs a week.
  4. What you would do with the recovered time.
  5. Your hurdle rate or payback requirement, if you have one.