> ## Documentation Index
> Fetch the complete documentation index at: https://docs.amlok.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Cash-flow forecasting and constrained lending capacity

> History-aware forecasting, customer retention, eligible collateral and stress sizing, with the complete 58-metric specification.

![](https://mintcdn.com/amlok-docs/E2XhE7LcU8Z7MBXL/images/whitepapers/04-lending-capacity.svg?fit=max\&auto=format\&n=E2XhE7LcU8Z7MBXL\&q=85\&s=b38f284853cee714d65e48b30b157573)**Research period:** August 2025 - November 2026 · [Research timeline](https://docs.amlok.io/research/index.md#research-timeline)The November 2026 [completed facility evaluation](https://docs.amlok.io/research/resources/cohort-evaluations.md#facility-calculations-and-population-coverage) tests term and revolving contracts, exposure paths and borrowing-base calculations. It reports calculation conformance within the specified cases, separately from the forecast benchmarks in this paper.**Research paper RP-2026-04** · [Research library](https://docs.amlok.io/research/library.md) · [Metric definitions workbook RS-2026-05](https://docs.amlok.io/research/resources/metric-taxonomy.md)## What this study comparesThis study asks how accurately a system can forecast business cash flow before sizing a proposed obligation. AMLOK's capacity pipeline routes short and established histories through different forecasting methods, then adds supplier stress and supported collateral. Its direct comparators are financial forecasting configurations: industry XGBoost, a uniform monthly transformer, and simpler historical rules.| Financial task | Baseline result | AMLOK configuration and result | Difference |
| - | - | - | - |
| Forecast cash flow across active businesses | Industry XGBoost + gross collateral: 19.8% case-weighted subgroup WAPE | Supplier-stressed model + priority-adjusted collateral: 14.8% | 5.0 percentage points lower error |
| Forecast cash flow across the same businesses | Uniform monthly transformer: 20.8% case-weighted subgroup WAPE | Supplier-stressed configuration: 14.8% | 6.0 percentage points lower error |
| Forecast businesses with under 12 months of history | Uniform monthly transformer: 34.8% WAPE | Supplier-stressed configuration: 20.1% | 14.7 percentage points lower error |
| Forecast businesses with at least 12 months of history | Uniform monthly transformer: 14.1% WAPE | Supplier-stressed configuration: 12.3% | 1.8 percentage points lower error |The evaluation contains **39,930 active cases**: **12,952 short-history** and **26,978 established-history** cases. Within each history subgroup, WAPE divides total absolute forecast error by total absolute observed cash flow. The overall column is **case-weighted subgroup WAPE**, defined in section 6; lower is better. Quantile LightGBM is part of AMLOK's short-history route. The results compare forecasting pipelines on cash flow, rather than language models answering general questions.Source: [RP-2026-04, evaluation results](https://docs.amlok.io/whitepapers/04-lending-capacity.md#6-evaluation-results), capacity benchmark table and Figures 4.1-4.3. Collateral recovery and coverage-breach results remain separate measures below.## AbstractA business can have a low estimated probability of default and still lack enough cash to support a proposed payment schedule. This paper joins cash-flow forecasting, receipt timing, customer retention, supported collateral and debt-service constraints in one capacity assessment. It routes short and established histories through different forecasting methods, then sizes an obligation against stressed monthly coverage and a 13-week cash floor.The reported active-business evaluation contains 39,930 cases. The selected configuration records 14.8% case-weighted subgroup WAPE, 5.1% collateral recovery error and an 8.5% debt-service coverage breach rate. Its event-timing accuracy is 79.6% within one day, and its nominal 90% prediction intervals cover 90.1% of outcomes. This paper also defines 58 financial metrics across eight dimensions. [Source: RP-2026-04, capacity results and metric specification](https://docs.amlok.io/whitepapers/04-lending-capacity.md).## 1. The capacity problemCapacity depends on the amount, timing and reliability of future cash. A monthly surplus can conceal a payroll shortfall earlier in the month. Gross inventory can include goods the business does not own. Receivables can include overdue balances, disputes or concentrations that reduce their supported value. A forecast that overlooks these distinctions can overstate sustainable borrowing.The study evaluates four linked questions: which forecasting method fits the available history; when money should arrive; which assets support recovery; and how large a proposed obligation can be while satisfying explicit coverage and liquidity requirements. These are assessment outputs within Insights and Signal. Institutions retain their lending and intervention decisions.## 2. Match the forecast to available historyThe study routes businesses with fewer than 30 annual operating transactions to an insufficient-activity tier with no autonomous capacity. Short-history businesses have less than 12 months of history and account for 31.4% of the full later-period cohort. Established businesses have at least 12 months and account for 65.4%. The active evaluation includes 12,952 short-history and 26,978 established cases. These source counts sum to 39,930; they describe the forecasting evaluation population. [Source: RP-2026-04, routing method and Figure 4.1](https://docs.amlok.io/whitepapers/04-lending-capacity.md).### Figure 4.1 - Forecast routingMatch model complexity to the business history available at assessment.<ol />### Short histories share information across comparable businessesThe short-history route combines empirical-Bayes seasonal shrinkage by industry and province with quantile LightGBM and split-conformal intervals. Shrinkage reduces reliance on a noisy borrower-specific estimate when little history is available.**Equation 4.1a - Short-history shrinkage**$$
\widehat\mu_i=
\frac{H_i}{H_i+\kappa}\bar\mu_i^{\mathrm{deseas}}
+\frac{\kappa}{H_i+\kappa}\mu_{0,\mathrm{industry,province}}
$$`H_i` is available history, `kappa` controls shrinkage, and the two means describe deseasonalized borrower activity and the comparable-group prior. More history increases the weight on the borrower's own observations. [Source: RP-2026-04, equation 4.1](https://docs.amlok.io/whitepapers/04-lending-capacity.md).### Established histories retain both monthly and event timingThe established route uses a monthly temporal fusion transformer with a 32-month input and 12-month forecast, paired with a six-layer causal timing head. The timing head predicts a Gaussian-smoothed distribution over 201 interarrival-day bins. Its amount objective uses a log transform and Huber loss so unusually large amounts do not dominate every update. [Source: RP-2026-04, forecasting architecture](https://docs.amlok.io/whitepapers/04-lending-capacity.md).**Equation 4.1b - Joint timing and amount objective**$$
\mathcal L_{\mathrm{timing}}=
-\sum_{b=0}^{200}\widetilde q_b(\Delta d)\log\widehat p_b
+\lambda_a\mathcal L_{\mathrm{Huber}}
\left(\log(1+|a_{\mathrm{next}}|),\widehat a_{\log}\right)
$$`q` is the smoothed target timing distribution and `p` is the predicted distribution. The second term compares predicted and observed transaction amounts on a log scale. `lambda_a` sets the relative weight of amount error. [Source: RP-2026-04, equation 4.1](https://docs.amlok.io/whitepapers/04-lending-capacity.md).## 3. Separate customer retention from supply constraintsThe method resolves customer identities before constructing the customer-by-month revenue matrix. Gross revenue retention measures how much of the starting cohort's revenue remains, without allowing expansion to offset contraction. Net revenue retention includes expansion by those same customers. Neither measure adds newly acquired customers to the starting cohort.**Equation 4.2a - Cohort revenue retention**$$
\mathrm{GRR}_m=
\frac{\sum_{b\in C_0}\min(R_{b,m},R_{b,0})}{\sum_{b\in C_0}R_{b,0}},
\qquad
\mathrm{NRR}_m=
\frac{\sum_{b\in C_0}R_{b,m}}{\sum_{b\in C_0}R_{b,0}}
$$`C_0` is the starting customer cohort and `R` is supported cohort revenue. GRR lies between zero and one for non-negative revenue; NRR can exceed one when existing customers expand. Both require a positive starting denominator. The metric appendix applies these definitions to monthly recurring revenue. [Source: RP-2026-04, equation 4.2 and retention metrics](https://docs.amlok.io/whitepapers/04-lending-capacity.md).Observed sales also depend on availability. A stockout can suppress sales even when demand remains. The paper adjusts for this censoring before interpreting a decline as a change in customer demand.**Equation 4.2b - Availability-adjusted demand**$$
\widehat D^{\mathrm{latent}}_{k,d}=
\frac{S^{\mathrm{obs}}_{k,d}}{1-\mathrm{StockoutShare}_{k,d}}
$$The expression scales observed sales by the share of the period with stock available. It requires a positive availability denominator and the stated censoring assumption; a fully unavailable item does not yield a finite estimate through this ratio. [Source: RP-2026-04, equation 4.2](https://docs.amlok.io/whitepapers/04-lending-capacity.md).## 4. Value supported collateralThe receivables calculation removes the union of invoice-level aging, related-party, contra, and dispute exclusions once, then applies concentration limits to the surviving balances. Inventory eligibility follows ownership: consigned and third-party goods do not become owned collateral merely because they appear in an inventory system. The study then applies expiry adjustments, paid-but-unfulfilled order deductions and scenario-specific tax-priority deductions.**Equation 4.3 - Receivables and realizable collateral**$$
\begin{aligned}
E_r&=\operatorname{Bal}_r-\operatorname{Amount}(\operatorname{UnionExcludedSlices}_r),\\
AR_{\mathrm{eligible}}&=\sum_r\operatorname{AllowedAfterConcentration}(E_r),\\
I_{\mathrm{eligible}}&=\sum_\ell\max(0,C_\ell-U_\ell-L_\ell),\\
V_{\mathrm{realizable}}&=\max\bigl(0,0.85AR_{\mathrm{eligible}}+(1-h_0)I_{\mathrm{eligible}}\\
&\qquad -V_{\mathrm{unfulfilled,residual}}-T_{\mathrm{priority,residual}}\bigr)
\end{aligned}
$$`C_l` is an owned lot's current carrying value after booked write-downs; `U_l` is the remaining value of wholly ineligible or expired amounts, and `L_l` is incremental supported impairment on the eligible remainder. They cannot overlap or exceed `C_l`. `h_0` is the haircut applied after eligibility and impairment. Residual unfulfilled-order and priority claims exclude any amount already removed from the AR/inventory pool. [Calculation policies](https://docs.amlok.io/research/resources/metric-specifications.md#receivables-inventory-and-debt-identities) specify the allocations and prevent double deductions. The 85% receivables factor and tax-priority deduction belong to the paper's scenario. `T_priority` represents supported overdue tax liabilities included under those assumptions. The formula does not determine the legal priority of a particular claim or set an institution's advance rate. [Source: RP-2026-04, equation 4.3 and collateral specification](https://docs.amlok.io/whitepapers/04-lending-capacity.md).The Canadian scenarios consider payroll source deductions and sales-tax obligations in their collateral treatment. Keep the relevant jurisdiction, claim and security position attached to any assessment that uses these deductions. The receivables and collateral metrics preserve both gross eligible value and adjusted realizable value, so the haircut remains interpretable.The paper connects these calculations to 92 cross-system attributes: 30 receivables, 30 payables, 20 inventory and 12 debt measurements. The [catalog paper](https://docs.amlok.io/whitepapers/06-financial-evidence-catalog.md) explains how those families fit into the 150 cross-system attributes used across the research. [Sources: RP-2026-04, scope](https://docs.amlok.io/whitepapers/04-lending-capacity.md), [RP-2026-06, cross-system allocation](https://docs.amlok.io/whitepapers/06-financial-evidence-catalog.md).## 5. Size the obligation under coverage and cash constraintsThe sizing method searches for the largest principal that satisfies both constraints. It uses supplier-vulnerability-stressed cash flow at the tenth percentile for debt coverage and checks the lower cash-balance forecast over 13 weeks. A monotonic root finder locates the binding principal when the modeled payment and cash functions satisfy the assumed monotonic behavior.**Equation 4.4a - Constrained capacity**$$
\begin{aligned}
A^*={}&\max_{A\in[0,A_{\max}]} A\\
\text{subject to }{}&
\frac{Q^{\mathrm{stress}}_{0.10}(NCF_m^{\mathrm{op}})}
{DS_m^{\mathrm{existing}}+\psi_m(A,r(PD),T)}\geq\gamma_{\mathrm{DSCR}},\\
&\min_{w=1,\ldots,13}Q_{0.10}\bigl(\mathrm{CashBalance}_w(A)\bigr)\geq B_{\min}
\end{aligned}
$$`A` is proposed principal; `psi` is its scheduled payment for the selected rate and term. `gamma_DSCR` is the required coverage ratio and `B_min` is the explicit cash floor. `Q_0.10` denotes the lower tenth-percentile estimate. Both constraints use the same proposed obligation. [Source: RP-2026-04, equation 4.4](https://docs.amlok.io/whitepapers/04-lending-capacity.md).**Equation 4.4b - Headroom and break-even decline**$$
\begin{aligned}
\mathrm{Headroom}&=\max\left(0,\frac{\mathrm{CashAvailable}}{\gamma_{\mathrm{DSCR}}}-DS_{\mathrm{total}}\right),\\
\delta^*_{\mathrm{break\text{-}even}}&=
\min\left\{\delta\in[0,1]:\mathrm{DSCR}\bigl(R_0(1-\delta)\bigr)\leq\gamma_{\mathrm{DSCR}}\right\}.
\end{aligned}
$$Headroom measures additional payment capacity, in currency, under the specified requirement. The break-even decline identifies the first modeled revenue reduction that reaches or breaches the coverage threshold. It depends on the cost, payment and stress assumptions used in the scenario. [Source: RP-2026-04, equation 4.4](https://docs.amlok.io/whitepapers/04-lending-capacity.md).## 6. Evaluation resultsThe comparison separates history length from overall forecast error. The uniform monthly transformer records 34.8% error on short histories and 14.1% on established histories. This contrast supports matching forecasting complexity to evidence length. The selected supplier-stressed configuration records 20.1% and 12.3% respectively, with 14.8% case-weighted subgroup WAPE. [Source: RP-2026-04, capacity benchmark table](https://docs.amlok.io/whitepapers/04-lending-capacity.md).For each history subgroup `g`, define `WAPE_g = sum(abs(forecast - actual)) / sum(abs(actual))` on its supported evaluation cases, requiring a positive denominator. The overall statistic uses case counts:$$
\mathrm{CW\text{-}WAPE}=\frac{12{,}952\,\mathrm{WAPE}_{\mathrm{short}}+26{,}978\,\mathrm{WAPE}_{\mathrm{established}}}{39{,}930}.
$$The five displayed overall percentages are this **case-weighted subgroup WAPE**, rounded to one decimal from the displayed subgroup rates. Pooled WAPE would instead weight each subgroup by its absolute actual cash-flow sum. Those denominator sums are not supplied here, so no pooled estimate is claimed. For example, subgroup errors 20 and 90 on absolute actuals 100 and 900 yield pooled WAPE 11%, while two equally sized subgroups yield case-weighted subgroup WAPE 15%.Collateral MAPE averages percentage recovery errors over the evaluated collateral outcomes. DSCR breach rate counts assessed cases below the study's coverage requirement. These denominators differ, so the measures should remain separate.
    

\### Figure 4.2 - Forecast error by history length


      

Net-cash-flow WAPE. Lower is better. Short-history and established businesses remain separate.


    
    
    
    
    

\<table><caption>Exact values (%)</caption>
        \<thead><tr><th scope="col">Method or group</th></tr></thead>
        \<tbody /></table>


    

\### Figure 4.3 - Overall forecast error


      

Case-weighted mean of short-history and established-history subgroup WAPEs (12,952 and 26,978 cases). Lower is better.


    
    
    
    
    

\<table><caption>Exact values (%)</caption>
        \<thead><tr><th scope="col">Method or group</th></tr></thead>
        \<tbody /></table>


    

\### Figure 4.4 - Collateral recovery error


      

Mean absolute percentage error of collateral recovery estimates. Lower is better.


    
    
    
    
    

\<table><caption>Exact values (%)</caption>
        \<thead><tr><th scope="col">Method or group</th></tr></thead>
        \<tbody /></table>


    

\### Figure 4.5 - Debt-service coverage breaches


      

Share of assessed cases that breach the study's DSCR requirement. Lower is better.


    
    
    
    

The source figure uses a 10% research scenario reference. It is not a product policy or a guarantee.


    

\<table><caption>Exact values (%)</caption>
        \<thead><tr><th scope="col">Method or group</th></tr></thead>
        \<tbody /></table>


  | Additional forecasting result | Reported result | Meaning |
| - | -: | - |
| Event timing within one day | 79.6% | Next-event timing falls within one day of the observed event. |
| Coverage of nominal 90% prediction intervals | 90.1% | Observations fall inside the forecast interval at approximately its stated nominal rate. |Source: [RP-2026-04, forecasting results](https://docs.amlok.io/whitepapers/04-lending-capacity.md). Interval coverage, point-forecast error and debt-service outcomes answer different questions. None substitutes for the others.## 7. Complete metric specificationThese formulas use [research-financial-v2](https://docs.amlok.io/research/resources/metric-specifications.md#calculation-version-and-domain-policies). Debt service unions identified payment records before summing currency. Explicit refinance mappings remove only superseded future obligations and include the payoff once; equal amounts alone never identify duplicates.The following 58 definitions preserve the paper's metric keys, scopes and units. `t_0` is the assessment time; `W` is the aligned observation window. `Div+(a,b)` means division with a supported, strictly positive denominator. Missing inputs or an invalid denominator do not become zero. Currency amounts use a consistent assessed currency and period. Sets remove duplicate records where the definition requires distinct members.Each formula links to [RP-2026-04](https://docs.amlok.io/whitepapers/04-lending-capacity.md). [RS-2026-05](https://docs.amlok.io/research/resources/metric-taxonomy.md) supplies the supporting catalog definitions.### Working capital**`net_working_capital`**Scope and unit: business (currency).```text theme={null}
CurrentAssets(t_0) - CurrentLiabilities(t_0)
```The balance-sheet surplus or deficit of current assets over current liabilities at the same date.[Source: RP-2026-04, metric specification](https://docs.amlok.io/whitepapers/04-lending-capacity.md).**`receivables_days`**Scope and unit: business (days).```text theme={null}
Div+( TradeAR(t_0) * |W|_days, CreditSales(W) )
```The collection-time equivalent of trade receivables relative to credit sales for the period.[Source: RP-2026-04, metric specification](https://docs.amlok.io/whitepapers/04-lending-capacity.md).**`payables_days`**Scope and unit: business (days).```text theme={null}
Div+( TradeAP(t_0) * |W|_days, CreditPurchases(W) )
```The payment-time equivalent of trade payables relative to credit purchases for the period.[Source: RP-2026-04, metric specification](https://docs.amlok.io/whitepapers/04-lending-capacity.md).**`inventory_days`**Scope and unit: business (days).```text theme={null}
Div+( Inventory(t_0) * |W|_days, COGS(W) )
```The holding-time equivalent of inventory relative to the period's cost of goods sold.[Source: RP-2026-04, metric specification](https://docs.amlok.io/whitepapers/04-lending-capacity.md).**`cash_conversion_cycle`**Scope and unit: business (days).```text theme={null}
receivables_days + inventory_days - payables_days
```The length of the operating funding cycle across inventory holding, customer collections and supplier payment timing.[Source: RP-2026-04, metric specification](https://docs.amlok.io/whitepapers/04-lending-capacity.md).**`ar_overdue_share`**Scope and unit: business (ratio).```text theme={null}
Div+( sum_{b != current} cross_system.ar.aging.b.amount, AR_collectible_tot )
```The portion of collectible trade receivables whose contractual payment due dates have passed.[Source: RP-2026-04, metric specification](https://docs.amlok.io/whitepapers/04-lending-capacity.md).**`ar_90_plus_share`**Scope and unit: business (ratio).```text theme={null}
Div+( AR_aging_91_120 + AR_aging_120_plus, AR_trade_tot )
```The portion of trade receivables more than 90 days past their payment due dates.[Source: RP-2026-04, metric specification](https://docs.amlok.io/whitepapers/04-lending-capacity.md).**`ap_overdue_share`**Scope and unit: business (ratio).```text theme={null}
Div+( sum_{b != current} cross_system.ap.aging.b.amount, AP_trade_tot )
```The portion of trade payables whose contractual payment due dates have passed.[Source: RP-2026-04, metric specification](https://docs.amlok.io/whitepapers/04-lending-capacity.md).**`inventory_turnover`**Scope and unit: business (ratio).```text theme={null}
Div+( COGS(W), 0.5 * (Inventory_open + Inventory_close) )
```How many times the period's cost of goods sold represents the average inventory balance.[Source: RP-2026-04, metric specification](https://docs.amlok.io/whitepapers/04-lending-capacity.md).### Debt and leverage**`total_debt`**Scope and unit: business, person (currency).```text theme={null}
sum_{f in F_interest_bearing} Principal_f(t_0)
```Outstanding principal of resolved interest-bearing obligations within the supported debt scope.[Source: RP-2026-04, metric specification](https://docs.amlok.io/whitepapers/04-lending-capacity.md).**`net_debt`**Scope and unit: business, person (currency).```text theme={null}
total_debt - unrestricted_cash
```Debt remaining after offsetting eligible unrestricted cash at the same assessment date.[Source: RP-2026-04, metric specification](https://docs.amlok.io/whitepapers/04-lending-capacity.md).**`debt_to_assets`**Scope and unit: business (ratio).```text theme={null}
Div+( total_debt, TotalAssets(t_0) )
```Interest-bearing debt relative to total assets; non-debt liabilities are not included as debt.[Source: RP-2026-04, metric specification](https://docs.amlok.io/whitepapers/04-lending-capacity.md).**`debt_to_equity`**Scope and unit: business (ratio).```text theme={null}
Div+( total_debt, BookEquity(t_0) )  [strictly NULL when BookEquity <= 0]
```Interest-bearing debt relative to positive equity. Nonpositive equity does not produce a usable ratio.[Source: RP-2026-04, metric specification](https://docs.amlok.io/whitepapers/04-lending-capacity.md).**`net_debt_to_ebitda`**Scope and unit: business (ratio).```text theme={null}
Div+( net_debt, EBITDA_TTM )
```Net debt relative to supported trailing-12-month EBITDA, indicating debt size against earnings capacity.[Source: RP-2026-04, metric specification](https://docs.amlok.io/whitepapers/04-lending-capacity.md).**`credit_utilization`**Scope and unit: business, person (ratio).```text theme={null}
Div+( UsedRevolvingBalance(t_0), CommittedRevolvingLimit(t_0) )
```The used portion of known committed revolving credit limits.[Source: RP-2026-04, metric specification](https://docs.amlok.io/whitepapers/04-lending-capacity.md).**`short_term_debt_share`**Scope and unit: business, person (ratio).```text theme={null}
Div+( PrincipalDue_365d(t_0), total_debt )
```The portion of total debt principal contractually due within the next 365 days.[Source: RP-2026-04, metric specification](https://docs.amlok.io/whitepapers/04-lending-capacity.md).**`debt_maturing_90d`**Scope and unit: business, person (currency).```text theme={null}
cross_system.debt.maturing_90d.observed_principal
```Principal contractually due within the next 90 days, including supported balloon payments.[Source: RP-2026-04, metric specification](https://docs.amlok.io/whitepapers/04-lending-capacity.md).**`concurrent_financing_count`**Scope and unit: business (count).```text theme={null}
|F_active_facilities(t_0)|
```The number of distinct observed active financing facilities after resolving duplicate facility identities.[Source: RP-2026-04, metric specification](https://docs.amlok.io/whitepapers/04-lending-capacity.md).**`new_financing_count_90d`**Scope and unit: business (count).```text theme={null}
|{ f in F_active_facilities(t_0) : t_orig(f) >= t_0 - 90d }|
```Observed active facilities funded during the 90 days ending at the assessment time.[Source: RP-2026-04, metric specification](https://docs.amlok.io/whitepapers/04-lending-capacity.md).**`debt_to_operating_receipts`**Scope and unit: business (ratio).```text theme={null}
Div+( total_debt, (365 / |W|_days) * operating_cash_inflows(W) ) [90 to 365 complete consecutive days; annualized research convention]
```Supported total debt relative to observed operating receipts over the trailing year.[Source: RP-2026-04, metric specification](https://docs.amlok.io/whitepapers/04-lending-capacity.md).### Repayment capacity**`dscr`**Scope and unit: business (ratio).```text theme={null}
Div+( EligibleCashAvailable_DS(W), total_debt_service )
```Eligible cash available for debt service relative to existing and proposed contractual payments. A value of one represents coverage of the stated payments, not a lending approval.[Source: RP-2026-04, metric specification](https://docs.amlok.io/whitepapers/04-lending-capacity.md).**`fixed_charge_coverage`**Scope and unit: business (ratio).```text theme={null}
Div+( EligibleCashAvailable_DS(W) + LeasePayments(W), total_debt_service + FixedCharges(W) )
```Cash available against the explicitly defined set of fixed charges, including leases when applicable.[Source: RP-2026-04, metric specification](https://docs.amlok.io/whitepapers/04-lending-capacity.md).**`interest_coverage`**Scope and unit: business (ratio).```text theme={null}
Div+( operating_profit, InterestExpense(W) )
```Supported earnings before interest and tax relative to interest expense for the same period.[Source: RP-2026-04, metric specification](https://docs.amlok.io/whitepapers/04-lending-capacity.md).**`existing_debt_service`**Scope and unit: business (currency).```text theme={null}
sum_{p in UniqueScheduledPayments(F_existing; W)} (Principal_p + Interest_p + MandatoryFees_p)
```Contractual principal, interest and mandatory debt fees on existing obligations over the assessment window.[Source: RP-2026-04, metric specification](https://docs.amlok.io/whitepapers/04-lending-capacity.md).**`proposed_debt_service`**Scope and unit: business (currency).```text theme={null}
sum_{p in UniqueScheduledPayments(F_proposed; W)} (Principal_p + Interest_p + MandatoryFees_p)
```Contractual payments and mandatory debt fees associated with the exact financing terms being assessed.[Source: RP-2026-04, metric specification](https://docs.amlok.io/whitepapers/04-lending-capacity.md).**`total_debt_service`**Scope and unit: business (currency).```text theme={null}
sum_{p in UniqueScheduledPayments(F_existing union F_proposed; W; Replacements)} (Principal_p + Interest_p + MandatoryFees_p)
```The combined, deduplicated contractual payments for existing and proposed obligations over the assessment window.[Source: RP-2026-04, metric specification](https://docs.amlok.io/whitepapers/04-lending-capacity.md).**`residual_cash_after_debt`**Scope and unit: business (currency).```text theme={null}
EligibleCashAvailable_DS(W) - total_debt_service
```Cash left, or the shortfall, after existing and proposed contractual debt service.[Source: RP-2026-04, metric specification](https://docs.amlok.io/whitepapers/04-lending-capacity.md).**`debt_service_headroom`**Scope and unit: business (currency).```text theme={null}
max( 0.0, (EligibleCashAvailable_DS(W) / gamma_DSCR_req) - total_debt_service )
```Additional debt-service room at the institution's required coverage threshold. It is an analytical capacity amount, not a credit limit or offer.[Source: RP-2026-04, metric specification](https://docs.amlok.io/whitepapers/04-lending-capacity.md).**`debt_payment_to_receipts`**Scope and unit: business (ratio).```text theme={null}
Div+( observed_debt_service, operating_cash_inflows )
```Observed debt payments relative to operating cash receipts. This describes payment burden and does not replace contractual coverage analysis.[Source: RP-2026-04, metric specification](https://docs.amlok.io/whitepapers/04-lending-capacity.md).**`debt_service_to_outflows`**Scope and unit: business (ratio).```text theme={null}
Div+( observed_debt_service, total_outflows - internal_transfer_outflows )
```The portion of observed external cash outflows attributable to debt service.[Source: RP-2026-04, metric specification](https://docs.amlok.io/whitepapers/04-lending-capacity.md).### Collateral and security**`collateral_ltv`**Scope and unit: business, person (ratio).```text theme={null}
Div+( Exposure_assessed, V_collateral_supported )
```The assessed facility exposure relative to the supported value of its collateral.[Source: RP-2026-04, metric specification](https://docs.amlok.io/whitepapers/04-lending-capacity.md).**`combined_ltv`**Scope and unit: business, person (ratio).```text theme={null}
Div+( KnownPriorAndPariSecuredClaims + Exposure_assessed, V_collateral_supported )
```All known secured claims, including the proposed exposure, relative to the same collateral value.[Source: RP-2026-04, metric specification](https://docs.amlok.io/whitepapers/04-lending-capacity.md).**`collateral_coverage`**Scope and unit: business, person (ratio).```text theme={null}
Div+( V_collateral_realizable_post_haircut, SecuredExposure )
```Supported realizable collateral value after approved reductions relative to secured exposure.[Source: RP-2026-04, metric specification](https://docs.amlok.io/whitepapers/04-lending-capacity.md).**`eligible_receivables`**Scope and unit: business (currency).```text theme={null}
sum_{r in TradeInvoices(t_0)} AllowedBalanceAfterConcentration(r)
```Receivables that meet the institution's stated borrowing-base eligibility and concentration rules.[Source: RP-2026-04, metric specification](https://docs.amlok.io/whitepapers/04-lending-capacity.md).**`collateral_haircut_ratio`**Scope and unit: business, person (ratio).```text theme={null}
1.0 - Div+( V_collateral_realizable_post_haircut, V_gross_eligible_collateral )
```The portion of gross eligible collateral value excluded when arriving at supported realizable value.[Source: RP-2026-04, metric specification](https://docs.amlok.io/whitepapers/04-lending-capacity.md).### Commerce and subscriptions**`gross_sales`**Scope and unit: business (currency).```text theme={null}
sum_{o in EligibleOrders(W)} Subtotal_ex_Tax_pre_Discount_Refund(o)
```Eligible sales before discounts and refunds, excluding taxes, on the stated sales basis.[Source: RP-2026-04, metric specification](https://docs.amlok.io/whitepapers/04-lending-capacity.md).**`net_sales`**Scope and unit: business (currency).```text theme={null}
gross_sales - Discounts(W) - CancelledOrderValue(W) - Refunds_ex_Tax(W)
```Eligible sales after discounts, cancellations and refunds, excluding taxes.[Source: RP-2026-04, metric specification](https://docs.amlok.io/whitepapers/04-lending-capacity.md).**`average_order_value`**Scope and unit: business (currency).```text theme={null}
Div+( net_sales, |CompletedNonCancelledOrders(W)| )
```Net eligible sales value per completed noncancelled order. This is an order measure, not a processor-payout measure.[Source: RP-2026-04, metric specification](https://docs.amlok.io/whitepapers/04-lending-capacity.md).**`repeat_customer_share`**Scope and unit: business (ratio).```text theme={null}
Div+( |{ b in Customers(W) : CompletedOrders_b(W) >= 2 }|, |Customers(W)| )
```The portion of purchasing customers who completed more than one purchase in the defined cohort.[Source: RP-2026-04, metric specification](https://docs.amlok.io/whitepapers/04-lending-capacity.md).**`monthly_recurring_revenue`**Scope and unit: business (currency).```text theme={null}
sum_{sub in ActiveContracts(t_0)} NormalizedMonthlyContractedValue(sub)
```Contracted recurring subscription revenue expressed on a monthly basis. It does not guarantee collection.[Source: RP-2026-04, metric specification](https://docs.amlok.io/whitepapers/04-lending-capacity.md).**`gross_revenue_retention`**Scope and unit: business (ratio).```text theme={null}
Div+( sum_{b in Cohort_0} min(MRR_{b,t}, MRR_{b,0}), sum_{b in Cohort_0} MRR_{b,0} )  [in [0,1]]
```The portion of opening recurring revenue retained after churn and contraction, without counting expansion.[Source: RP-2026-04, metric specification](https://docs.amlok.io/whitepapers/04-lending-capacity.md).**`net_revenue_retention`**Scope and unit: business (ratio).```text theme={null}
Div+( sum_{b in Cohort_0} MRR_{b,t}, sum_{b in Cohort_0} MRR_{b,0} )  [includes expansion]
```Recurring revenue retained from the opening customer cohort after churn, contraction and expansion.[Source: RP-2026-04, metric specification](https://docs.amlok.io/whitepapers/04-lending-capacity.md).**`settlement_delay_days`**Scope and unit: business (days).```text theme={null}
Div+( sum_{m in MatchedCashAllocations(W)} AllocatedAmount_m * DelayDays_m, sum_{m in MatchedCashAllocations(W)} AllocatedAmount_m )
```The amount-weighted elapsed time between captured sales and their matched bank settlements.[Source: RP-2026-04, metric specification](https://docs.amlok.io/whitepapers/04-lending-capacity.md).### Operating resilience**`payroll_burden_share`**Scope and unit: business (ratio).```text theme={null}
Div+( payroll_outflows, verified_revenue )
```Payroll cash costs, including supported employer costs, relative to verified revenue.[Source: RP-2026-04, metric specification](https://docs.amlok.io/whitepapers/04-lending-capacity.md).**`payroll_growth_yoy`**Scope and unit: business (ratio).```text theme={null}
Div+( payroll_outflows(W) - payroll_outflows(W - 365d), payroll_outflows(W - 365d) )
```The relative change in payroll cost against the comparable prior-year period.[Source: RP-2026-04, metric specification](https://docs.amlok.io/whitepapers/04-lending-capacity.md).**`inventory_stockout_share`**Scope and unit: business (ratio).```text theme={null}
Div+( sum_{sku, d} I(SellableQty_{sku,d} == 0), TotalEligibleItemDays(W) )
```The portion of observed eligible item-days when sellable inventory was out of stock.[Source: RP-2026-04, metric specification](https://docs.amlok.io/whitepapers/04-lending-capacity.md).**`fulfillment_on_time_share`**Scope and unit: business (ratio).```text theme={null}
Div+( |{ o in FulfilledOrders : t_ship(o) <= t_promised(o) }|, |FulfilledOrders(W)| )
```The portion of eligible fulfilled orders completed by their promised dates.[Source: RP-2026-04, metric specification](https://docs.amlok.io/whitepapers/04-lending-capacity.md).**`supplier_payment_delay_days`**Scope and unit: business (days).```text theme={null}
Div+( sum_{bill_k} Amt_k * max(0, t_paid_k - t_due_k), sum_{bill_k} Amt_k )
```The amount-weighted lateness of settled supplier bills against their contractual due dates, with early payments treated as zero delay.[Source: RP-2026-04, metric specification](https://docs.amlok.io/whitepapers/04-lending-capacity.md).**`operating_outflows_change_90d`**Scope and unit: business (ratio).```text theme={null}
Div+( O_op(0..90d) - O_op(91..180d), O_op(91..180d) )
```The relative change in operating cash payments against the preceding 90 days.[Source: RP-2026-04, metric specification](https://docs.amlok.io/whitepapers/04-lending-capacity.md).### Tax and statutory obligations**`tax_liability`**Scope and unit: business (currency).```text theme={null}
sum_{auth in CRA_RQ_Prov} SupportedAssessedUnpaidTax(auth, t_0)
```Supported outstanding assessed tax obligations at the assessment date, distinguished from estimates.[Source: RP-2026-04, metric specification](https://docs.amlok.io/whitepapers/04-lending-capacity.md).**`tax_overdue_amount`**Scope and unit: business (currency).```text theme={null}
sum_{auth : t_due < t_0} SupportedAssessedUnpaidTax(auth, t_0)
```Supported assessed tax obligations that remain unpaid after their due dates.[Source: RP-2026-04, metric specification](https://docs.amlok.io/whitepapers/04-lending-capacity.md).**`tax_payment_coverage`**Scope and unit: business (ratio).```text theme={null}
Div+( AllocatedTaxPayments(W), AssessedTaxesDue(W) )
```Due assessed taxes supported as covered by allocated payments for the same period.[Source: RP-2026-04, metric specification](https://docs.amlok.io/whitepapers/04-lending-capacity.md).**`filing_coverage`**Scope and unit: business (ratio).```text theme={null}
Div+( |SupportedRequiredTaxFilings(W)|, |KnownRequiredTaxFilings(W)| )
```The portion of known required filings supported by filing evidence. This is evidence coverage, not a compliance conclusion.[Source: RP-2026-04, metric specification](https://docs.amlok.io/whitepapers/04-lending-capacity.md).### Forecasting and stress**`projected_minimum_cash`**Scope and unit: business, person (currency).```text theme={null}
min_{w in 1..H_forecast} ModeledClosingCashBalance(w)
```The lowest modeled closing cash balance within the specified forecast horizon.[Source: RP-2026-04, metric specification](https://docs.amlok.io/whitepapers/04-lending-capacity.md).**`stress_dscr`**Scope and unit: business (ratio).```text theme={null}
Div+( CashAvailable_UnderStressScenario, TotalDebtService_UnderStressScenario )
```Debt-service coverage under the stated stress scenario and its existing and proposed payment assumptions.[Source: RP-2026-04, metric specification](https://docs.amlok.io/whitepapers/04-lending-capacity.md).**`stress_residual_income`**Scope and unit: person (currency).```text theme={null}
VerifiedNetIncome_pers_stress - EssentialSpend_stress - Housing_mo - PersonalDebtService_stress
```Consumer income remaining after essential, housing and debt outgoings under the stated stress scenario.[Source: RP-2026-04, metric specification](https://docs.amlok.io/whitepapers/04-lending-capacity.md).**`liquidity_shortfall`**Scope and unit: business, person (currency).```text theme={null}
max( 0.0, ExplicitRequiredLiquidityFloor - projected_minimum_cash )
```The modeled cash deficit against the explicitly required liquidity floor, with no deficit represented as zero.[Source: RP-2026-04, metric specification](https://docs.amlok.io/whitepapers/04-lending-capacity.md).**`break_even_revenue_decline`**Scope and unit: business (ratio).```text theme={null}
min { delta in [0, 1] : DSCR_modeled( Rev_0 * (1 - delta) ) <= gamma_capacity_threshold }
```The modeled reduction in revenue at which the specified capacity threshold is first breached.[Source: RP-2026-04, metric specification](https://docs.amlok.io/whitepapers/04-lending-capacity.md).## Supporting sources- [RP-2026-04 - supporting paper](https://docs.amlok.io/whitepapers/04-lending-capacity.md): equations, definitions and reported comparisons.
- [RS-2026-05 - metric definitions workbook](https://docs.amlok.io/research/resources/metric-taxonomy.md): metric keys, scopes and formula catalog.
- [Research lending capacity](https://docs.amlok.io/research/lending-capacity.md): introductory explanation of the capacity assessment.
- [Financial evidence catalog](https://docs.amlok.io/whitepapers/06-financial-evidence-catalog.md): how the 58 metrics fit into the complete research catalog.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.