Treasury Track 5: Covenant tracking and the compliance certificate with AI

Published by

on

The Pragmatic CFO: practical finance for the AI era

TL;DR A covenant compliance certificate is a calculation you sign, built on definitions your lender wrote, not on your own P&L. An AI is good at reading those definitions literally and building the math line by line with every input traced; it is bad at it when you let it use “EBITDA” from memory. In this lesson you rebuild Larkspur’s October certificate, find three errors in the staff draft, and learn why fixed charge coverage, not leverage, is the covenant to watch.

What you’ll practice

  • Pasting the credit agreement’s definitions into the prompt and making the AI work from them, word for word.
  • Testing every add-back against the definition and the 10% cap, and tracing every input to a source line.
  • Reviewing a draft certificate and tracking covenant headroom every month, so the test is never a surprise.

Time: about 35 to 45 minutes. You need the free Treasury Track workbook (Excel) and any AI assistant that can read an uploaded spreadsheet. Larkspur Supply Co. is a made-up four-branch industrial distributor with about $63 million of revenue. The credit agreement, the lender terms and every balance in the file are invented, so it is safe to upload.

The certificate due Monday

Today is Friday, November 27, 2026. Larkspur’s October 31 compliance certificate, signed by the CFO, is due Monday, November 30. A staff accountant drafted it on November 25; nobody has reviewed it. The lender tests two covenants every month end:

  • Total leverage: funded debt divided by trailing twelve month Covenant EBITDA, no more than 2.50 to 1.
  • Fixed charge coverage (FCCR): Covenant EBITDA minus unfinanced capital spending, cash taxes and owner distributions, divided by cash interest plus scheduled principal, at least 1.25 to 1.

The word that matters is “Covenant”. Covenant EBITDA is whatever the credit agreement says it is: it starts near your P&L EBITDA, then adds back some items and not others, often with caps. The certificate is a representation to your lender, so “close enough” is not a standard. For the wider reporting rhythm, see our guide to lender reporting and covenant compliance.

This lesson is not legal advice. Read your own credit agreement with your counsel, and ask before you sign when a definition is unclear.

The data

5_TTM_Monthly has November 2025 to October 2026 by month: reported EBITDA, unfinanced capital spending, cash taxes, owner distributions, term loan principal and interest, and revolver interest. 5b_Addback_Candidates lists five proposed add-backs. 5c_Covenant_Terms holds the fictional, simplified definitions. 5d_Debt_Oct31 has the term loan, revolver, a forklift capital lease and an undrawn letter of credit. 5e_Draft_Certificate is the staff draft.

The prompts use the five-line format from the Workbench setup lesson: JOB, DATA, RULES, OUTPUT, PROOF.

Step 1: Paste the definitions, not your memory of them

The best habit in covenant work: give the AI the exact definition text and tell it to ignore what agreements “usually” say. Left alone, a model fills gaps with a typical definition, and yours is not typical.

JOB: You are a treasury analyst preparing the October 31, 2026 covenant compliance calculation for CFO review.
DATA: Sheet 5c_Covenant_Terms in the attached workbook.
RULES: Quote each definition word for word. List every input it needs and the sheet and column that supplies it. Flag every word that needs a judgment (one-time, non-cash, capital lease, scheduled). Use only the text in the sheet, not general knowledge of how agreements usually define EBITDA or debt. If an input has no source, say NO SOURCE.
OUTPUT: One table per covenant: input, source, judgment words.
PROOF: For every input, quote the phrase that requires it. Confirm the test levels: leverage at most 2.50 to 1, FCCR at least 1.25 to 1.

On your own agreement, this step is where you find the clauses everyone forgot: a cap on add-backs, a pro forma rule for acquisitions, a different definition of “fixed charges” than the one in your head.

Step 2: Build Covenant EBITDA line by line

Here the definition allows two kinds of add-back: non-cash charges, and one-time cash charges capped at 10% of EBITDA before add-backs. It excludes gains on asset sales. Each candidate in 5b gets tested against those words, one at a time.

JOB: You are a treasury analyst building trailing twelve month Covenant EBITDA at October 31, 2026.
DATA: Sheet 5_TTM_Monthly (12 months, November 2025 to October 2026), sheet 5b_Addback_Candidates and the Covenant EBITDA definition in 5c_Covenant_Terms.
RULES: Start from total Reported EBITDA and confirm it equals the sum of the 12 months. Test each candidate against the definition only: non-cash, one-time cash charge, or neither? Recurring costs are not one-time. Apply the 10% cap, computed on EBITDA before add-backs, to one-time cash charges. Check whether a gain is already outside reported EBITDA before adjusting. Do not accept an add-back because a note says so; give your own reason from the definition.
OUTPUT: A build table: each candidate, amount, allowed or not, definition phrase relied on, running total. Then Covenant EBITDA.
PROOF: Show the cap calculation and the 12 months summed to the total.

Two candidates pass (severance and the bad debt reserve), two fail (the recurring audit fee and the owner’s travel), and the gain needs no adjustment. The key below has the build.

Step 3: Leverage and fixed charge coverage

JOB: You are a treasury analyst computing the two October 31, 2026 covenant ratios.
DATA: Covenant EBITDA from step 2; sheet 5d_Debt_Oct31; sheet 5_TTM_Monthly; definitions in 5c_Covenant_Terms.
RULES: Funded debt is exactly what the definition lists at the test date. FCCR numerator = Covenant EBITDA minus unfinanced capital spending minus cash taxes minus owner distributions. Fixed charges = term loan interest plus revolver interest plus scheduled principal. All trailing twelve months. Show ratios to four decimals. Compute headroom: how far Covenant EBITDA could fall, and fixed charges rise, before each ratio breaches.
OUTPUT: Funded debt build; FCCR build line by line; each ratio with test level, pass or fail, and headroom in dollars.
PROOF: Name the source sheet and row for every number. Show each headroom calculation on one line.

Leverage is 0.53x against a 2.50x maximum: nowhere near binding. Coverage is the tight one, at 1.3036x against a 1.25x minimum.

The reason is owner distributions: 2,400,000 over the twelve months, four payments of 600,000. Without them coverage would be about 4.0x. With them, Covenant EBITDA could fall by only 47,262 before a breach, about one-eighth of a single month’s EBITDA. A company this profitable is one bad month, or one more distribution, from a default.

Step 4: Review the draft certificate

JOB: You are the reviewer on the October 31, 2026 compliance certificate before it goes to the CFO.
DATA: Sheet 5e_Draft_Certificate, plus your rebuilt calculation from steps 2 and 3.
RULES: Compare the draft line by line with the rebuild. For each difference, quote the definition the draft departs from and give the dollar effect. Do not fix the draft silently: list every change.
OUTPUT: Table: line, draft, correct, difference, reason. Then a short note to the CFO: what changed and whether each covenant passes.
PROOF: Recompute both draft ratios from the draft's own inputs, to show whether the errors are in the inputs or the arithmetic.

The draft is arithmetically fine and wrong in three places. The errors are definitional, exactly what a quick tick-and-tie misses.

Step 5: Track headroom every month

Covenant breaches surprise people because nobody looked between test dates. Keep a small monthly table: Covenant EBITDA, each ratio, the test level and headroom in dollars. Add two forward lines: next month with the known items (a planned distribution, a principal payment), and the same month if EBITDA comes in 10% light.

Larkspur’s 47,262 of headroom should start a conversation now, because December is a distribution month. The capstone, Treasury Track 8, tests exactly that.

Where AI changes this

Covenant compliance used to be a spreadsheet someone built once and rolled forward, with definitions remembered rather than reread. AI makes it cheap to start from the agreement text every month and to show the trail for every number. Our view of what changes in practice:

  • Definitions get read, not remembered. The AI turns each clause into an input list with its source, and flags the judgment words.
  • Add-backs get a reason. Each candidate is tested against the quoted definition and the cap, not waved through because a note says “allowed”.
  • Drafts get a line-by-line review against an independent rebuild, with the dollar effect of each difference.
  • Headroom gets tracked monthly, with forward lines for planned distributions and a downside case, drafted in minutes.

What stays human: the reading of an ambiguous clause, any conversation with the lender, and the signature. The CFO signs the certificate; the AI never does, and nobody should treat its output as the certificate. For the wider picture, see our AI in the office of the CFO series.

What a good answer looks like

Show the answer key

Covenant EBITDA, trailing twelve months to October 31, 2026

LineAmountTreatment
Reported EBITDA, Nov 2025 to Oct 20264,227,090Starting point
Severance, two warehouse roles, Mar 202664,000Allowed: one-time cash charge, under the 10% cap of 422,709
Bad debt reserve, customer bankruptcy, Sep 202618,000Allowed: non-cash charge
Year-end audit planning fee, Oct 202642,000Not allowed: recurring, not one-time
Owner’s personal travel25,000Not allowed: not a permitted add-back
Gain on sale of box truck FA-1083,100No adjustment: already outside reported EBITDA
Covenant EBITDA4,309,090Allowed add-backs total 82,000

The two ratios

ItemAmount
Funded debt: term loan 2,100,000 + revolver 0 + capital lease 165,000 (letter of credit excluded)2,265,000
Total leverage (maximum 2.50x)0.53x, pass
FCCR numerator: 4,309,090 minus capex 620,000 minus taxes 140,000 minus distributions 2,400,0001,149,090
Fixed charges: interest 201,462.50 (term 183,062.50 + revolver 18,400) + principal 680,000881,462.50
FCCR (minimum 1.25x)1.3036x, pass
Headroom: Covenant EBITDA could fall by47,262
Headroom: or fixed charges could rise by37,810

The draft certificate against the rebuild

LineDraftCorrectWhat went wrong
Covenant EBITDA4,376,0904,309,090Added back the 42,000 audit fee and the 25,000 owner travel: overstated by 67,000
Funded debt2,100,0002,265,000Left out the 165,000 capital lease
Total leverage0.48x0.53xFollows from the two lines above
FCCR numerator3,616,0901,149,090Left out 2,400,000 of owner distributions
Fixed charges881,462.50881,462.50Correct
FCCR4.10x1.30xShows huge room where there is almost none

Both covenants pass at October 31. So did the draft, which is the danger: 4.10x suggests room for a large distribution, when the true cushion is 47,262 of EBITDA.

Where AI goes wrong on this task

Our view of the usual failure points:

  • Using P&L EBITDA as Covenant EBITDA. The model sees a column called EBITDA and stops. Make it build from the definition every time.
  • Accepting every add-back. Without a rule to test each against the quoted definition and the cap, the AI adds them all, as the draft did.
  • Dropping distributions. Many FCCR definitions the model has seen leave them out. This one does not, and they are the whole story here.
  • Missing debt not called a loan. A literal reading of “capital leases” catches the forklift lease.
  • Rounding the cushion away. 1.3036x rounds to 1.30x and sounds comfortable. Headroom in dollars does not.

What stays with the treasurer

The treasurer owns the calculation and the headroom table; the CFO signs the certificate. Reading an unclear clause, asking the lender about an add-back before relying on it, and telling the owners that the next distribution is the binding constraint are human calls. So is talking to the lender early if headroom keeps shrinking.

Check yourself

Why is the 42,000 audit fee not an add-back?

The definition allows one-time cash charges. An annual audit fee recurs every year, so it is not one-time, whatever the month it landed in.

The letter of credit is 250,000. Why is it not in funded debt?

Because the definition says so: “Letters of credit are not funded debt.” It is undrawn. It does matter elsewhere: it uses revolver availability, as lesson 6 shows.

Leverage is 0.53x against a 2.50x limit. Why worry at all?

Because the other covenant is tight. FCCR is 1.3036x against 1.25x, and Covenant EBITDA could fall by only 47,262 before a breach. One covenant passing easily says nothing about the other.

What drives the tight coverage ratio?

Owner distributions of 2,400,000 over the twelve months. They come straight out of the numerator. Without them coverage would be about 4.0x.

The draft’s arithmetic checks out. Why is it wrong?

Its inputs break the definitions: two disallowed add-backs, a missing capital lease and missing distributions. Re-adding the draft finds nothing; rebuilding from the definitions finds all three.

Your turn: try it on your own numbers

Copy the covenant definitions from your credit agreement into a document, put your trailing twelve months by month in a sheet with your add-back list and debt schedule, and run the four prompts. Then start the monthly headroom table and keep it. Credit agreements, lender terms and debt balances are sensitive: use an approved tool, mask account and loan numbers, and check the data zones in the Workbench setup lesson before you upload anything.

Next: Treasury Track 6: Borrowing base and revolver availability with AI

New here? Start here to find the best guide for your job, or use the free finance templates, the CFO metrics library and the CFO moves tracker.