S1-4 Greenblatt metrics #9

Closed
opened 2026-11-06 01:18:53 +00:00 by chris-kreidl · 3 comments
chris-kreidl commented 2026-11-06 01:18:53 +00:00 (Migrated from github.com)

As a user, I want ROTC and earnings yield computed the way Greenblatt defines them.

Fixes #4.

Acceptance criteria

  • ROTC = EBIT ÷ (max(0, NWC excluding cash, short-term investments and short-term debt) + net PP&E)
  • EY = EBIT ÷ (market cap + total debt − cash − short-term investments)
  • Total debt includes finance-lease liabilities, wherever the company reports them (product owner decision in the comments below): DRI = $2,331.3M debt + $1,740.4M finance leases; MU = $5,179M, with leases already inside its debt lines and not counted twice
  • Net PP&E includes finance-lease right-of-use assets, matching the debt treatment
  • Unit tests with hand-computed values, including tangible capital of 0

Definition of Done

  • Acceptance criteria met and demonstrated
  • bun test passes; new logic has tests
  • bun check is clean and bun fmt --check passes
  • Runs end to end on real data (not just fixtures)
  • Committed with Closes #<this issue>
*As a user, I want ROTC and earnings yield computed the way Greenblatt defines them.* Fixes #4. ### Acceptance criteria - [ ] ROTC = EBIT ÷ (max(0, NWC excluding cash, short-term investments and short-term debt) + net PP&E) - [ ] EY = EBIT ÷ (market cap + total debt − cash − short-term investments) - [ ] Total debt includes finance-lease liabilities, wherever the company reports them (product owner decision in the comments below): DRI = $2,331.3M debt + $1,740.4M finance leases; MU = $5,179M, with leases already inside its debt lines and not counted twice - [ ] Net PP&E includes finance-lease right-of-use assets, matching the debt treatment - [ ] Unit tests with hand-computed values, including tangible capital of 0 ### Definition of Done - [ ] Acceptance criteria met and demonstrated - [ ] `bun test` passes; new logic has tests - [ ] `bun check` is clean and `bun fmt --check` passes - [ ] Runs end to end on real data (not just fixtures) - [ ] Committed with `Closes #<this issue>`
chris-kreidl commented 2026-11-06 01:46:10 +00:00 (Migrated from github.com)

🤖 Claude: Product owner decision needed before S1-4: should finance leases count as debt?

Found while building fixtures (#7):

  • MU puts finance leases inside its debt lines: $5,179M total, $2,792M without leases.
  • DRI keeps them separate: $2,331M of debt on the balance sheet, plus $1,740M of finance-lease liabilities elsewhere.

Greenblatt treats debt as interest-bearing obligations, and finance leases are economically debt. Counting them makes companies comparable however they present leases. Leaving them out is simpler but means MU and DRI are measured differently.

Recommendation: include finance leases in total debt (and keep the finance-lease right-of-use assets in net PP&E, as both companies report them).

🤖 **Claude:** **Product owner decision needed before S1-4:** should finance leases count as debt? Found while building fixtures (#7): - **MU** puts finance leases *inside* its debt lines: $5,179M total, $2,792M without leases. - **DRI** keeps them *separate*: $2,331M of debt on the balance sheet, plus $1,740M of finance-lease liabilities elsewhere. Greenblatt treats debt as interest-bearing obligations, and finance leases are economically debt. Counting them makes companies comparable however they present leases. Leaving them out is simpler but means MU and DRI are measured differently. Recommendation: **include finance leases** in total debt (and keep the finance-lease right-of-use assets in net PP&E, as both companies report them).
chris-kreidl commented 2026-11-06 01:57:10 +00:00 (Migrated from github.com)

let's include finance leases in total debt. i want to compare apples to apples.

let's include finance leases in total debt. i want to compare apples to apples.
chris-kreidl commented 2026-11-06 02:51:57 +00:00 (Migrated from github.com)

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

  • Tangible capital = 0 → ROTC is null (not rankable).
  • Enterprise value ≤ 0 → EY is null (not rankable).
🤖 **Claude:** Product owner decisions (in chat, 2026-11-05): - Tangible capital = 0 → ROTC is **null** (not rankable). - Enterprise value ≤ 0 → EY is **null** (not rankable).
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#9
No description provided.