Debt under notes payable, lines of credit, and convertibles is not extracted #32

Closed
opened 2026-11-06 02:32:05 +00:00 by chris-kreidl · 3 comments
chris-kreidl commented 2026-11-06 02:32:05 +00:00 (Migrated from github.com)

What's wrong: the S1-3 extractor (#8) only reads DebtCurrent, ShortTermBorrowings, LongTermDebtCurrent, LongTermDebtNoncurrent, LongTermDebtAndCapitalLeaseObligations, LongTermDebt, and DebtLongtermAndShorttermCombinedAmount. Companies that report debt under other tags get no total debt. If that is treated as zero, their enterprise value is understated and their earnings yield overstated, the same kind of distortion as #1.

Evidence (real-data run of #8 on the Nov 5, 2026 data/, 5,170 companies with a fiscal year in the last 13 months):

Companies with no total debt Count
All 2,436
No current assets (banks, insurers, REITs, funds; not rankable) ~580
Report positive debt under other tags at fiscal year-end ~1,050
No debt-like tags at all (likely debt-free) ~800

Most common unread tags: FinanceLeaseLiability (238), NotesPayableCurrent (193), NotesPayable (112), LineOfCredit (108), ConvertibleNotesPayableCurrent (95), SubordinatedDebt (72), LoansPayableCurrent (62), ConvertibleDebtCurrent (60), SecuredDebt (55), ConvertibleNotesPayable (53), ConvertibleDebtNoncurrent (50), LoansPayable (49).

Not debt and should stay excluded: DebtInstrumentFaceAmount (per-instrument detail), LineOfCreditFacilityRemainingBorrowingCapacity (unused credit).

Expected:

  • Debt reported under these tags is included without double-counting aggregates (e.g. NotesPayable alongside LongTermDebt).
  • Finance leases are handled per the decision on #9.
  • "No debt tags" (likely debt-free) is distinguishable from "debt not recognized". The ~800 vs ~1,050 split above shows both exist.
**What's wrong:** the S1-3 extractor (#8) only reads `DebtCurrent`, `ShortTermBorrowings`, `LongTermDebtCurrent`, `LongTermDebtNoncurrent`, `LongTermDebtAndCapitalLeaseObligations`, `LongTermDebt`, and `DebtLongtermAndShorttermCombinedAmount`. Companies that report debt under other tags get no total debt. If that is treated as zero, their enterprise value is understated and their earnings yield overstated, the same kind of distortion as #1. **Evidence** (real-data run of #8 on the Nov 5, 2026 `data/`, 5,170 companies with a fiscal year in the last 13 months): | Companies with no total debt | Count | |---|---| | All | 2,436 | | No current assets (banks, insurers, REITs, funds; not rankable) | ~580 | | **Report positive debt under other tags at fiscal year-end** | **~1,050** | | No debt-like tags at all (likely debt-free) | ~800 | Most common unread tags: `FinanceLeaseLiability` (238), `NotesPayableCurrent` (193), `NotesPayable` (112), `LineOfCredit` (108), `ConvertibleNotesPayableCurrent` (95), `SubordinatedDebt` (72), `LoansPayableCurrent` (62), `ConvertibleDebtCurrent` (60), `SecuredDebt` (55), `ConvertibleNotesPayable` (53), `ConvertibleDebtNoncurrent` (50), `LoansPayable` (49). Not debt and should stay excluded: `DebtInstrumentFaceAmount` (per-instrument detail), `LineOfCreditFacilityRemainingBorrowingCapacity` (unused credit). **Expected:** - Debt reported under these tags is included without double-counting aggregates (e.g. `NotesPayable` alongside `LongTermDebt`). - Finance leases are handled per the decision on #9. - "No debt tags" (likely debt-free) is distinguishable from "debt not recognized". The ~800 vs ~1,050 split above shows both exist.
chris-kreidl commented 2026-11-06 02:38:01 +00:00 (Migrated from github.com)

🤖 Claude: One more case to cover here, found while fixing #8: 13 filers report a total LongTermDebt plus a DebtCurrent aggregate, but no separate LongTermDebtCurrent. DebtCurrent probably includes the current portion of long-term debt, so adding the two may count it twice. There is no tag to subtract, so the extractor currently adds them. Examples: XCF Global, SurgePays, OneMedNet.

🤖 **Claude:** One more case to cover here, found while fixing #8: 13 filers report a total `LongTermDebt` plus a `DebtCurrent` aggregate, but no separate `LongTermDebtCurrent`. `DebtCurrent` probably includes the current portion of long-term debt, so adding the two may count it twice. There is no tag to subtract, so the extractor currently adds them. Examples: XCF Global, SurgePays, OneMedNet.
chris-kreidl commented 2026-11-06 04:25:20 +00:00 (Migrated from github.com)

🤖 Claude: Product owner decisions (in chat, 2026-11-05):

  • When debt is reported under several tag families (e.g. NotesPayable and ConvertibleNotesPayable), sum the families, skipping any family whose amount exactly matches one already counted (26 of the 173 multi-family filers tag the same debt twice). Any error left over overstates debt rather than flattering earnings yield.
  • Debt-named tags that the extractor still doesn't read are recorded on the extracted facts only. Eligibility doesn't change.
🤖 **Claude:** Product owner decisions (in chat, 2026-11-05): - When debt is reported under several tag families (e.g. `NotesPayable` and `ConvertibleNotesPayable`), **sum the families, skipping any family whose amount exactly matches one already counted** (26 of the 173 multi-family filers tag the same debt twice). Any error left over overstates debt rather than flattering earnings yield. - Debt-named tags that the extractor still doesn't read are **recorded on the extracted facts only**. Eligibility doesn't change.
chris-kreidl commented 2026-11-06 04:37:58 +00:00 (Migrated from github.com)

🤖 Claude: The LongTermDebt + DebtCurrent double-count case from the comment above is split out to #43 (back burner; it changes no ranking today).

🤖 **Claude:** The `LongTermDebt` + `DebtCurrent` double-count case from the comment above is split out to #43 (back burner; it changes no ranking today).
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ckreidl/screener#32
No description provided.