Should You Automate This? The Arithmetic That Decides

The maintenance term every 'automate everything' calculator omits — and the arithmetic that decides which small automations actually pay off.

Author
Prabhash Jha
Published
Reading time
13 min read

The internet is full of automation calculators. Type in “hours saved per week × hourly cost” and the calculator confidently tells you that automating your invoice reminders will save ₹4.7 lakh a year. That number is not wrong, exactly. It is just missing the term that turns most small automations from wins into losses.

The missing term is maintenance. Not “we might have to tweak it once or twice”, but the honest, ongoing cost of keeping an automation working through UI changes, API breakage, edge cases, credential rotations, silent failures, and the specific version of “I need to add one more if-statement” that arrives every three weeks. Once you add the maintenance term to the arithmetic, roughly half the automations you were about to build come out negative, and the other half come out much smaller than the calculator promised.

This post is the honest arithmetic. It is short because the calculation is short. What is long is the discipline of running it before building anything, and staying honest about the maintenance term when you do.

The one-line formula the vendor calculators skip

The correct formula for the net annual value of an automation is:

Net = (hours saved per period × hourly cost × periods per year) − build cost amortised − maintenance cost per year − failure cost per year

Every vendor ROI calculator I have seen gets the first term right, gestures at the second, and completely ignores the third and fourth. Let me name each one honestly.

Hours saved per period × hourly cost × periods per year. The gross benefit. Be conservative here — the number in your head is almost always higher than what actually happens when you time the task. BrowserStack’s own automation-ROI guide says plainly that “the biggest source of error is the time-saved figure, so be conservative and time the task as it actually happens a few times rather than trusting memory.” Time it three times, take the median, then subtract 20% for good measure.

Build cost amortised. The one-time cost of building the automation, divided by the number of years you honestly expect it to run. Nobody amortises this over less than three years even though the average automation runs for about eighteen months before it breaks or gets replaced. Amortise over 1.5 years, not 3.

Maintenance cost per year. The ongoing cost of keeping it working. This is the missing term. Real automations spend somewhere between 15% and 40% of the build cost, every year, on maintenance — test-automation research puts this range specifically. Small automations at the low end (a rarely-changing API, a stable input format), complex automations at the high end. The mistake is assuming zero.

Failure cost per year. The cost of the times the automation runs wrong and something has to be un-done. This is not a bug budget; it is the honest expectation that the automation will occasionally produce output that costs you time, credibility, or money to correct. For a low-stakes automation (formatting a report), this is near zero. For a customer-facing automation (sending emails, moving inventory), this can easily exceed the gross benefit.

Add the four terms honestly and the picture changes. An “automate my invoicing reminder emails” project that the naive calculator scores at +₹2 lakh a year often scores at +₹40k after honest maintenance and failure costs — still positive, but small enough that it competes with other things you could do with the same time.

The 5-hour-a-month floor

The single rule that saves the most bad automations is: if the task does not consume at least 5 hours a month AND you cannot identify meaningful error costs, do not automate it.

That is not my number; it is the industry rule of thumb that a build-and-maintenance cycle for even a simple automation typically consumes 6-15 hours in the first year, and if the task only saves 3 hours a month you have burned six months paying it back before it starts returning value — during which the underlying system has usually changed enough that the automation needs a fix.

The 5-hour floor is generous. Below it, the arithmetic almost never works, and the temptation to build the automation is essentially aesthetic — “wouldn’t it be neat if the computer did this” rather than “we actually need this done differently”.

Three specific tasks that always fail the 5-hour floor test, in my experience:

  • A weekly summary email to yourself. You will read the email once, decide to change what it summarises, and spend the next month tweaking the query. The task took 20 minutes a week originally; the automation takes 4 hours to build and 30 minutes a month to maintain. Do the task manually and think about it while you do.
  • Formatting a report that changes shape monthly. Every month a stakeholder wants “just one more column” or “grouped by X this time”. Automating this is automating a moving target; the maintenance term dominates. Do it manually until the format has been stable for six months, then automate.
  • A “helpful” reminder to yourself that you will ignore. Automations that assume the reader will act on their output require the reader to have already decided to act on that output. If you have not been acting on the mental note, you will not act on the automated version — you will just be reminded of the not-acting more efficiently.

The maintenance-cost-shaped mistake

The maintenance term is the one people are most surprised by, so it is worth naming the specific mechanism.

Automation maintenance is not “we might need to fix a bug”. It is the ongoing cost of keeping the automation in sync with everything else that changes around it. Concretely, in a typical small-business automation, that includes:

  • UI/DOM changes in whatever the automation touches. Every time the vendor of the tool you are automating against changes a selector, redesigns a page, or moves a button, your automation breaks. On a well-designed API-backed automation this is zero; on a UI-scraper automation this is the majority of the maintenance cost.
  • API version deprecation. Every 6-24 months your upstream API will introduce a new version and deprecate the old one on a specific date. Your automation needs a code change on that date; missing it is how automations die silently on a random Tuesday.
  • Credential rotation. OAuth tokens expire. API keys need to be rotated. The automation whose token expired at 3am on a Sunday is the automation that produces no output until Monday morning at 10am when somebody notices. Automating the rotation itself often requires more infrastructure than the original automation.
  • Data-shape drift. The columns in the source spreadsheet get renamed. The report you are parsing gains a new header row. The customer’s export format shifts by one column. Each is a small change to the source and a full break of the automation, catchable only by an assertion that fails loudly.
  • Silent failures. The automation runs, finds nothing to process, and reports success. This is a category of maintenance that is essentially “the cost of catching automations that lied to you”, and the specific fixes are in the automation failure nobody catches: the workflow that runs green and does nothing.

Every one of these is a maintenance event, and every one costs 30-60 minutes when it hits. If you add up how many of these events you expect per year for a given automation, you have your maintenance-hours figure. For a well-designed API-backed automation, 4-8 hours a year. For a UI-scraping automation, 20-40 hours. For an automation that touches five different systems, sum them.

Multiply by your hourly cost. That is your maintenance-cost term.

The five questions to run before building anything

Before you write a line of code (or drop a node onto an n8n canvas, or configure a Zapier zap), answer all five of these in one sentence each.

1. How many hours per month does this task actually take, timed honestly? Not “about an hour”; the median of three real timings. If under 5 hours a month and no material error cost, stop here.

2. What is the failure mode when the automation gets it wrong? Class 1 — I notice within an hour and fix it, no external damage. Class 2 — a customer notices before I do, but the fix is fast. Class 3 — the damage compounds silently until somebody outside notices. Class 3 automations should almost never be built for tasks that could be done manually.

3. What upstream systems does the automation depend on, and how often do they change? One API that changes once a year is fine. Five UIs that redesign quarterly is not.

4. Who owns the automation when it breaks at 11pm on a Sunday? If the answer is “no one” or “we’ll figure it out”, the automation is already Class 3 by construction — you are automating your way into a support obligation you have not staffed.

5. What are you going to do with the time saved? If the answer is “have more time”, the automation is a lifestyle choice with a maintenance bill attached. If the answer is a specific thing that is more valuable than the automation, you have a business case.

If any answer to those five is uncomfortable, the automation should not exist yet. That is a strong claim; I hold to it. Automating a task that fails questions 2, 3, or 4 makes you responsible for a system that will bite you at a time you did not choose.

The four automations that almost always DO pay off

For balance, here are the four shapes of automation that pass the arithmetic most reliably, in roughly the order I would recommend building them.

Backups and log flushes. High frequency, tiny per-instance cost, catastrophic failure cost if not done. The build cost is small, the maintenance cost is small (credentials and storage), and the failure cost of NOT automating is the day the disk fails and you find out your “regular backups” were last run in March. Automate first.

Compliance and record-keeping. Any task that has to happen on a fixed cadence for audit reasons — SOC 2 evidence collection, tax filings, subscriber consent logs. These are tasks whose failure cost is “the auditor doesn’t accept the evidence” and whose maintenance cost is bounded because the requirement itself is stable.

Cross-system reconciliation. Comparing “the ad platform says X, the CRM says Y, the invoice says Z” is exactly the kind of task where human comparison misses the small discrepancies that add up. High volume, error cost measurable, maintenance cost low if the schemas are stable.

The daily scan for outliers. Not a full report — a scan that produces zero output when everything is normal and produces a specific alert when it is not. This is the shape “let me know if something is wrong” rather than “give me the numbers to look at every morning”, and the maintenance term is small because the output is small.

All four have one thing in common: the human cost of doing the task manually is high AND the error cost of skipping it is real, so the arithmetic works even after honest maintenance and failure costs.

What to actually do about your list of “things I should automate”

Two exercises worth doing this week, before starting to build anything.

Exercise 1. Take your list of “things I should automate” and run each one through the five-question test above, in writing. Any that fails questions 1, 2, or 4, cross it off. Any that passes, put it in an “eligible” list.

Exercise 2. For each eligible automation, calculate the honest four-term arithmetic — gross benefit, minus amortised build cost, minus 25% of build cost per year in maintenance (adjust to 15% or 40% based on question 3), minus a failure-cost estimate. Rank by net annual value. Build the top one, then time the actual maintenance cost for six months before committing to build the second one.

Most people’s “things to automate” list has ten items. After exercise 1 it is usually four. After exercise 2 it is usually two, and one of them has a much smaller payoff than expected. That is the honest answer, and it is worth having before spending the weekend building something whose ROI you have not properly calculated.

The larger principle

The value of a business is the specific decisions somebody with your context can make. Automation is only worth building for the tasks that do not require that context — the tasks where a machine, given the same inputs, produces the same output a competent human would. Every automation you build against a task that DOES require your context is a decision you have removed from your own judgement and handed to a system that will one day be wrong in a way you cannot easily correct.

The corollary is that the highest-leverage automation, always, is the one that does the mechanical work AROUND a decision so that you have more time to make the decision itself. Not “automate the whole thing” but “automate the parts of the thing that were absorbing the attention the decision needed”. That is a much smaller automation than the “let’s automate everything” ambition, and it is almost always what actually pays.

Where this fits with the rest of the work

The arithmetic above is the “should I build it” question. If your answer is yes, the next questions — how much authority to grant the resulting agent, what to log about what it does — are the substance of deciding what an AI agent is allowed to touch and what to log when an AI agent acts on your behalf respectively.

If your problem is that you have built several automations and one of them has gone silent — the pipeline is running green and producing nothing — the diagnostic and the fix pattern are in the automation failure nobody catches: the workflow that runs green and does nothing. Add that failure cost to the arithmetic above before deciding to build the next one.

FAQ

How long should I amortise the build cost over?

Over 1.5 years, not three. The average small-business automation runs for roughly eighteen months before it breaks or gets replaced, so a longer amortisation window flatters the arithmetic in a way that reality will not.

What maintenance percentage should I use if I have no historical data?

Start at 25% of the build cost per year and adjust down to 15% for a well-designed API-backed automation touching a stable system, or up to 40% for anything that scrapes a UI or spans multiple upstreams. Test-automation research puts the real-world range there, and assuming zero is the mistake that flips half of these projects from wins to losses.

Should I automate a task that only takes 3 hours a month if I hate doing it?

No. Below the 5-hour-a-month floor the build-and-maintenance cycle takes longer to pay back than the underlying system stays stable, so you spend most of the first year repairing the automation rather than saving time. Do it manually, or redesign the task so it is not needed at all.

What if a task saves fewer than 5 hours but the error cost is high?

Then the floor does not apply — the arithmetic is being driven by the failure-cost term, not the hours-saved term. Backups, compliance evidence, and cross-system reconciliation all pass on error cost even when the time saved is small, because the cost of skipping the task is what makes the numbers work.

Should I use Zapier or build it in code?

Whichever one you or someone on your team can maintain at 11pm on a Sunday when it breaks. The maintenance term dominates the arithmetic, and a tool nobody on the team can debug turns every small break into a large one — that is a bigger factor than the build cost difference between the two options.

How often will API version deprecations actually break my automation?

Expect a required code change every 6 to 24 months per upstream API, on a date the vendor picks and you do not. Multiply the number of upstream APIs by that cadence to get your realistic deprecation-driven maintenance load, and add credential rotations on top.

What if the task changes shape every month — should I still automate it?

No, wait until the shape has been stable for six months. Automating a moving target means the maintenance term dominates from day one because you are rebuilding the automation almost as often as you would have done the task manually. Stability of the input is a precondition, not a nice-to-have.

The one-sentence version

Every automation-ROI calculator ignores maintenance and failure costs, so add them explicitly — expect 15-40% of the build cost per year in maintenance, plus a real failure-cost estimate — and apply a 5-hour-per-month floor before building anything; automate backups, compliance and cross-system reconciliation reliably, and refuse to automate the tasks whose failure mode requires you to be personally reachable at 11pm on a Sunday to unwind.

Keep reading