Settings & data

Methodology parameters are code-level configuration (src/lib/config.ts) so every change is reviewable in git.

Data classes used throughout the app

PUBLIC DATA CASECase built from SEC filings; every historical number traces to a datapoint (filing, accession, page / section, URL, retrieved date).
PUBLIC FILINGA figure reported in a filing. Never estimated or silently filled; unit conversions (US$ thousands → $M) are documented.
CALCULATEDCalculated from reported figures by formula (e.g. LTM = FY + YTD − prior YTD; AOI / NOI build; FCF = CFO − capex).
ANALYST PROJECTIONModelled forecast under a scenario.
UNDERWRITING ASSUMPTION HYPOTHETICAL INVESTMENT TERMSHypothetical purchase price, fees, hold, new-loan terms and covenant packages. Not real transactions; not Fortress terms.
DEMO DATAFictional demo universe.

Excel ⇄ web reconciliation

Open →

Three workbooks (AMC Networks, Brandywine, Brightwater demo) are recalculated in LibreOffice and compared with the web engine on 173 metrics each, including all 105 sensitivity cells.

SEC EDGAR lookup (public filings ingestion)

Pulls company metadata, filing index and annual XBRL facts from SEC’s free APIs (validated with Zod). Set SEC_USER_AGENT in .env.local to identify yourself per SEC fair-access policy (see .env.example). Failures are shown here and never replaced by invented data.

Required-return thresholds (defaults; override per case)

hurdleIrr0.12
minYield0.09
maxNetLeverage6
minRecovery0.6
minCovenantHeadroom0.15
minDownsideIrr0

Credit score weights (sum 100)

leverage15
coverage15
liquidity10
fcf10
maturity10
marginStability10
revenueStability8
assetCoverage12
industry10

Distressed Opportunity Score weights (sum 100)

recovery20
entryDiscount15
catalyst10
position10
refiEvent5
defaultSafety15
liquidity10
leverage5
coverage5
maturity3
fcf2

Scenario probabilities & recovery

base0.55
downside0.3
severe0.15
adminClaimPct0.04
accruedMonths3
resolutionLagYears1

Monitoring thresholds

leverageIncrease0.5
coverageDecline0.5
liquidityDeclinePct0.2
maturityYears2
ebitdaDeclinePct0.1
covenantHeadroomPct0.15
recoveryDeclinePts5
revenueShortfall0.02
ebitdaShortfall0.05
leverageSlack0.25
coverageSlack0.15
liquiditySlack0.1

Maturity & risk bands

MATURITY_MATERIAL_PCT0.15
Low≥ 75
Moderate≥ 60
Elevated≥ 45
High≥ 0