TL;DR An asset-based revolver lends against what the bank will count, not against what sits on your balance sheet. An AI can rebuild the borrowing base from the invoice file every month and explain every ineligible dollar, if you give it the rules in the right order. In this lesson you rebuild Larkspur’s October borrowing base, find that the draft certificate overstates it by 2,653,802.22, and see why the base, not the 7,500,000 commitment, is the real limit.
The Treasury Track, lesson 6 of 8. Free hands-on lessons on running cash, banks, covenants and payments with AI, on one made-up company, with prompts, answer keys and self-checks. See all eight lessons or download the sample workbook (Excel).
All lessons
- Lesson 1: Run the 13-week cash forecast every week
- Lesson 2: Working capital levers: DSO, DPO and inventory
- Lesson 3: Bank fees and account structure
- Lesson 4: Payment fraud defense
- Lesson 5: Covenant tracking and the compliance certificate
- Lesson 6: Borrowing base and revolver availability (you are here)
- Lesson 7: Interest rate and currency exposure
- Lesson 8: Capstone: survive the late-payment scenario
What you’ll practice
- Aging receivables from invoice date and running the ineligibles in the order the loan agreement sets.
- Applying the inventory cap and reserves, then computing availability against the lower of the base and the commitment.
- Reconciling a draft borrowing base certificate to an independent rebuild, with a dollar bridge for every error.
Time: about 40 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 loan terms, customers and invoices in the file are invented, so it is safe to upload.
What a borrowing base is
Larkspur has a 7,500,000 revolving line, but it cannot simply draw 7,500,000. The bank lends a percentage of the receivables and inventory it is willing to count, minus reserves. That figure is the borrowing base, reported on a certificate, here for November 30.
The bank’s question: if the company failed, what could it collect? A 120-day-old invoice is a weak bet. So is a government receivable the bank cannot collect without an assignment, a customer who also sells to you and can net what it owes, or one customer so large its failure would sink the pool. Each becomes an “ineligible”, and the order you remove them in changes the answer.
Availability is the lower of the commitment and the base, minus loans and letters of credit. Treasury plans cash against availability, not the size of the line.
This lesson is not legal advice. Your own loan agreement sets the definitions; read it with your counsel, and ask your lender where a rule is unclear.
The data
6_BB_Terms has the fictional, simplified borrowing base rules. 6b_Draft_BB_Certificate is the AR supervisor’s unreviewed draft. 2_AR_Invoices has 128 open items at October 31 (one a credit memo) with customer type, terms, invoice date, due date and amount, totaling 8,264,220.40. 2d_Inventory has nine product classes at cost. 2c_AP_Vendors shows what Larkspur owes Oakridge Pallet Co, also a customer. 5d_Debt_Oct31 has the revolver (undrawn) and a 250,000 letter of credit.
The prompts use the five-line format from the Workbench setup lesson: JOB, DATA, RULES, OUTPUT, PROOF. Treasury Track 2 aged these invoices by days past due. This lesson ages them differently, on purpose.
Step 1: Turn the terms into an ordered rulebook
JOB: You are a treasury analyst preparing the October 31, 2026 borrowing base for the November 30 certificate.
DATA: Sheet 6_BB_Terms in the attached workbook.
RULES: Quote each rule word for word. Order the receivable ineligibles: age, cross-age, government, contra, then concentration last, because it is measured "after the other exclusions". State how credit memos are treated. Name the workbook field each rule needs. Use only the text in the sheet, not typical bank terms.
OUTPUT: A numbered rulebook: step, rule quoted, data field, what to compute.
PROOF: Quote the phrase that sets the order for concentration and the phrase that defines age (invoice date or due date).
The key phrase is “more than 90 days from invoice date”. Not past due.
Step 2: Age every invoice from invoice date
Days past due counts from the due date; days from invoice counts from the day you billed. Northshore Hospital Systems invoice INV-48075 for 51,941.62 is 101 days from invoice but only 56 days past due on 45-day terms. A past-due aging calls it 31 to 60. The bank calls it ineligible.
JOB: You are a treasury analyst aging receivables for the borrowing base.
DATA: Sheet 2_AR_Invoices. As-of date October 31, 2026.
RULES: Age = October 31, 2026 minus Invoice date, in days. Never use Due date for age. A positive invoice over 90 days is ineligible. Credit memos stay in whatever their age. By customer, compute balance, the part over 90 days and its percentage. Treat "All other customers (212 accounts)" as many small accounts, not one customer.
OUTPUT: Table 1: items read, gross total, over-90 positive invoices, over-90 credit memos. Table 2: each customer with any balance over 90 days: balance, over-90 part, percent.
PROOF: Confirm 128 items and gross of 8,264,220.40. List each over-90 invoice with days from invoice and days past due side by side.
Step 3: Run the ineligibles in order
JOB: You are a treasury analyst computing eligible receivables.
DATA: Your step 2 results, 2_AR_Invoices (Customer type column) and 2c_AP_Vendors.
RULES: From gross receivables, remove in this order, never counting a dollar twice:
1. Age: positive invoices over 90 days from invoice date.
2. Cross-age: customers with 50% or more over 90 days lose the rest of their balance.
3. Government: the remaining balance of every Government customer.
4. Contra: for a customer that is also a vendor, the lower of its remaining receivable and the AP owed to it.
5. Concentration: any customer above 20% of eligible after steps 1 to 4 loses the excess.
Credit memos stay in. Explain each removal in one sentence.
OUTPUT: A waterfall: gross, each step and running eligible, then the 85% advance.
PROOF: Show the steps sum to gross minus eligible, and the concentration test on one line.
Order matters most for concentration. Cedar Valley Builders has 1,726,032.56 open, all under 90 days: 25.8% of what remains after the other exclusions. Measured against gross receivables instead, the excess would be smaller and the base overstated.
Cross-age catches habitual slow payers. Foxhollow Mechanical has 81.9% of its balance over 90 days from invoice, so its newer invoices go too.
Step 4: Inventory, reserves and availability
JOB: You are a treasury analyst finishing the borrowing base and availability.
DATA: Eligible receivables from step 3; sheet 2d_Inventory; rules in 6_BB_Terms; sheet 5d_Debt_Oct31.
RULES: Exclude seasonal stock and any class over 6 months on hand. Inventory advance = 50% of eligible inventory, capped at 1,250,000. Rent reserve = 3 months of North and West rent. Borrowing base = AR advance plus inventory advance minus reserves. Availability = lower of the 7,500,000 commitment and the base, minus loans, minus letters of credit. Say which is the limit.
OUTPUT: One table from AR advance to availability.
PROOF: Show the excluded inventory classes, the cap test and the availability formula with numbers.
The cap binds: 50% of eligible inventory is 1,956,235.12, but the bank lends no more than 1,250,000. The letter of credit is not funded debt in lesson 5, but it uses availability here.
Step 5: Reconcile the draft certificate
JOB: You are the reviewer on the borrowing base certificate due November 30, 2026.
DATA: Sheet 6b_Draft_BB_Certificate and your rebuild from steps 2 to 4.
RULES: Bridge the draft base to the rebuilt one, one line per error, in dollars of base (receivable errors times 85%). Quote the rule each error breaks. Flag any line that is right by coincidence rather than by method.
OUTPUT: Bridge table from draft base to rebuilt base, then a three-sentence note to the CFO.
PROOF: The bridge lines must sum exactly to the difference between the two bases.
Late payers shrink the base twice
A late payer hurts you first in cash: the money is not in the bank. Weeks later the invoice crosses 90 days from invoice date and drops out of the base, so you can borrow less to cover the gap. That is why the base belongs in the weekly cash conversation, and why collections (see our cash conversion cycle guide) are a liquidity lever.
Where AI changes this
Borrowing base certificates are often built from an aging report and last month’s template, with ineligibles carried forward as plugs. AI makes it practical to rebuild the base from the invoice file every time and show why each dollar is out. Our view of what changes:
- Every invoice gets aged from the right date, with days from invoice and days past due side by side so the difference is visible.
- Ineligibles run in the agreement’s order, with no double counting and a plain sentence for each removal.
- Drafts get a dollar bridge to an independent rebuild, instead of a glance at last month’s total.
- Forward views get easy: which invoices cross 90 days next month.
What stays human: reading the loan agreement, any request to the bank for a waiver or an assignment of government receivables, and the signature on a certificate the bank relies on. For more on where AI fits in finance work, see our AI in finance hub.
What a good answer looks like
Show the answer key
Eligible receivables waterfall at October 31, 2026
| Step | Ineligible | Running eligible |
|---|---|---|
| Gross receivables (includes the Bluefield credit memo of -6,400.00, which stays in) | 8,264,220.40 | |
| 1. Over 90 days from invoice date (positive invoices) | 179,403.49 | 8,084,816.91 |
| 2. Cross-age: Foxhollow Mechanical (Granger Site Works already fully out on age) | 17,758.20 | 8,067,058.71 |
| 3. Government: Alder Creek School District, Tamarack County Public Works | 1,330,350.96 | 6,736,707.75 |
| 4. Contra: Oakridge Pallet Co, lower of AR 157,326.90 and AP 38,500.00 | 38,500.00 | 6,698,207.75 |
| 5. Concentration: Cedar Valley Builders 1,726,032.56 is 25.8%; 20% cap 1,339,641.55 | 386,391.01 | 6,311,816.74 |
Borrowing base and availability
| Line | Amount |
|---|---|
| Eligible receivables 6,311,816.74 x 85% | 5,365,044.23 |
| Eligible inventory 3,912,470.25 (seasonal excluded; no other class over 6 months) x 50% = 1,956,235.12, capped | 1,250,000.00 |
| Less rent reserve: 3 x (42,000 + 38,000) | -240,000.00 |
| Borrowing base | 6,375,044.23 |
| Limit: lower of commitment 7,500,000 and borrowing base | 6,375,044.23 (the base) |
| Less revolver loans | 0.00 |
| Less letter of credit | -250,000.00 |
| Availability | 6,125,044.23 |
Draft certificate bridge
| Item | Effect on borrowing base |
|---|---|
| Draft borrowing base | 9,028,846.45 |
| Aged by days past due (81,118.84 out) instead of days from invoice (179,403.49 out): 98,284.65 x 85% | -83,541.95 |
| No cross-age exclusion: 17,758.20 x 85% | -15,094.47 |
| No government exclusion: 1,330,350.96 x 85% | -1,130,798.32 |
| No concentration exclusion: 386,391.01 x 85% | -328,432.36 |
| Inventory at 50% of all stock (2,105,935.12), seasonal not excluded, no cap | -855,935.12 |
| No rent reserve | -240,000.00 |
| Rebuilt borrowing base | 6,375,044.23 |
Total overstatement: 2,653,802.22, of which receivable errors are 1,557,867.10 (1,832,784.82 of eligible receivables at 85%). The draft’s contra of 38,500.00 is right by coincidence: it took the whole AP balance without testing the lower of the two. Taken at face value, the draft base is above the commitment, so the 7,500,000 line would look like the limit. The base is.
Where AI goes wrong on this task
Our view of the usual failure points:
- Aging by due date. The model reaches for the past-due aging it has seen most. Say “days from invoice date” and ask for both columns in the proof.
- Applying concentration first, or against gross receivables. The order changes the answer.
- Forgetting the inventory cap, or counting seasonal stock.
- Double counting: removing a cross-aged customer’s old invoices twice.
- Dropping the old credit memo. Credits stay in; removing one overstates the base.
What stays with the treasurer
The treasurer owns the rebuild, the bridge and the forward view of which invoices are about to age out. Signing the certificate, and any request to the bank, such as assigning the government receivables to make them eligible, are decisions for people. So is chasing a slow customer before its invoices cross 90 days.
Check yourself
Northshore’s INV-48075 is 56 days past due. Why is it ineligible?
The age rule counts from invoice date. It is 101 days from invoice, so it is over 90 and out, even though a past-due aging shows it in the 31 to 60 bucket.
Why is concentration tested last?
The rule measures the 20% against eligible receivables “after the other exclusions”. Cedar Valley Builders is 25.8% of the 6,698,207.75 that remains after age, cross-age, government and contra, so 386,391.01 is out.
Larkspur has a 7,500,000 line and nothing drawn. Why is availability only 6,125,044.23?
Availability is the lower of the commitment and the borrowing base, minus loans and letters of credit. The base is 6,375,044.23, and the 250,000 letter of credit uses part of it.
Excluding seasonal stock did not change the inventory advance. Why bother?
The cap binds this month: 50% of eligible inventory is 1,956,235.12, above the 1,250,000 cap. When inventory is lower, the exclusion will change the number, so the method must be right every time.
How does a late-paying customer shrink the base twice?
First, the cash is not in the bank. Then the invoice passes 90 days from invoice date and becomes ineligible, so you can borrow less to fill the gap. A habitual late payer can also tip into cross-age.
Your turn: try it on your own numbers
Export open receivables at invoice level with invoice date, due date and customer type, inventory by class, and the borrowing base section of your loan agreement. Run the prompts and bridge your last certificate to the rebuild. Loan agreements, customer balances and bank account details are sensitive: use an approved tool, mask account numbers, and check the data zones in the Workbench setup lesson before you upload anything.
Next: Treasury Track 7: Interest rate and currency exposure for mid-market companies, with AI
Put AI to work on your own numbers
The free 25-Prompt CFO Pack: copy-paste prompts for the weekly review, variance analysis, board decks, forecasting and hiring that work in ChatGPT, Claude or Copilot. Free, straight to your inbox.
