slop-stuff cheatsheets & experiments git

slop-stuff / Quantitative

Finance — value investing cheatsheet

Buy businesses, not tickers — with explicit math.

Statements, FCFF/FCFE, ratio herding, DCF, MoS, EDGAR workflow, and AI-slop kill-list.

financeFCFFDCFmargin of safetyROIC

Value investing means estimating intrinsic value and buying only with an explicit margin of safety. This page herds the formulas, ratios, and process — not vibes.

Quick reference

ThingFormula / rule
MoS1 − Price/IV — buy vs bottom of IV range, not a feeling
EV bridgeMktCap + Debt + Pref + NCI − Cash (− non-ops)
FCFFEBIT(1−t)+D&A−Capex−ΔNWC → discount @ WACCEV
FCFEFCFF−Int(1−t)+NetBorrow → discount @ r_eEquity
WACC(E/V)r_e + (D/V)r_d(1−t)market weights
TV (Gordon)FCFF_{n+1}/(WACC−g) — need WACC>g; g≲2–4%
TV (exit)EBITDA_{n+1}×ExitMult — back out implied g
Equity/sh(EV − NetDebt − Pref − NCI) / diluted shares
Cash ≠ EBITDAPrefer CFO / FCF / FCFF — EBITDA skips capex, WC, tax, SBC

Eight multiples to herd (always sector + cycle + quality):

MultipleCheap contextWatch
P/E, fwd P/Evs peers / historycyclicals, GAAP vs non-GAAP
PEG<1 roughdefine growth period
P/Bbanks/asset-heavyneeds ROE/ROTE
P/Searly / troughignores margins
EV/EBITDA, EV/EBITcap-structure neutralleases, SBC, capex
EV/FCF, FCF yieldlabel equity vs firmdefine FCF

Mindset

Four ideas. Price is what you pay; value is what you get.

  1. Intrinsic value — PV of future cash the business will produce.
  2. Margin of safety — explicit % below estimated IV (sized to uncertainty).
  3. Mr. Market — daily quote you may ignore or exploit.
  4. Circle of competence — only businesses you can understand and value.

KEY: Think in decades. A share is ownership in a business you’d hold for ten years — not a ticket to flip on the next print.

Statements map

Three reports + notes. Read together; normalize before ratios.

StatementWhat it saysHerd
IncomeRev → COGS → GP → OpInc → NImix, one-offs, SBC
BalanceAssets = Liab + Equitycash, AR, inv, debt, goodwill, NCI
Cash flowOp / Inv / FinCFO vs NI; capex; buybacks
Equity stmtShares, OCI, NCIdilution, RSU, buybacks

Normalize before you trust a number:

AdjustWhy
One-offsStrip (carefully) for run-rate
SBCReal cost — expense or dilution
LeasesAdd for IFRS16 peer comps
Op vs non-opValue non-ops separately in EV bridge
Diluted sharesOptions/RSU treasury method
NCI / PrefIn EV bridge; don’t orphan them

✓: Cash is fact, earnings are opinion. Want FCF ≈ NI. Rising AR/inventory vs sales → accruals / channel risk.

Ratio tables

Each row: formula · meaning · use · pitfall. Prefer 5–10y history + peers.

Profitability

MetricFormulaUsePitfall
Gross margin(Rev−COGS)/Revpricing power vs peersmix / freight / reseller
Op marginEBIT/Revcore opsrestructuring, lease/SBC class
Net marginNI/Revquick onlyfinancing distorts — prefer FCF margin
ROENI/Avg equityquality if sustainedleverage & buybacks inflate
ROANI/Avg assetsasset-heavy / banksintensity differs by model
ROICNOPAT/IC · NOPAT=EBIT(1−t)ROIC>WACC = value createavg IC; goodwill consistency
FCF marginFCF/Revcash conversionlumpy capex; maint vs growth

Leverage / liquidity

MetricFormulaUsePitfall
CurrentCA/CLnear-term solvencyinventory-heavy mirage
Quick(Cash+ST+AR)/CLstressAR quality
D/EIB debt / Equitygearing screenprefer Net debt; hybrids
Interest coverEBIT/Interestdebt cushioncyclical EBIT; leases
Net debt/EBITDA(Debt−cash)/EBITDAcredit compsEBITDA≠cash; add leases

Efficiency

MetricFormulaUsePitfall
Asset turnoverRev/Avg assetsDuPontmodel intensity
Inventory days(Avg inv/COGS)×365mfg/retailseasonality, write-downs
DSO(Avg AR/Rev)×365collections↑↑ vs sales → stuffing
CCCInv days + DSO − DPOWC qualitynegative CCC ≠ always good

Valuation

MetricFormulaUsePitfall
P/EPrice/EPS (diluted TTM/NTM)peer + historycycle peak EPS
Fwd P/EPrice/FY1growth betstale estimates
PEG(P/E)/g%growth-adjdefine g
P/BPrice/BVPSbanks/asset-heavyintangibles; needs ROE
P/SMktCap/Revearly / troughignores margins
EV/EBITDAEV/EBITDAfirm compscapex/SBC/leases
EV/EBITEV/EBITafter D&Astill pre-reinvestment
EV/FCFEV/FCFFcash firm multdefine FCF
FCF yieldFCF/MktCap or FCFF/EVowner screenlabel equity vs firm
Earn. yieldEPS/Price or EBIT(1−t)/EVvs bondsearnings quality

Quality

MetricIdeaUsePitfall
Accruals(NI−CFO)/Avg assetsearnings vs cashsingle-year noise
Owner earningsNI + non-cash − maint. capex (−ΔWC)Buffett cash basemaint. capex is estimate
Rule of 40growth% + margin% ≥ 40SaaS onlymargin definition varies

Sector lens

SectorPreferAvoid / caution
IndustrialsEV multiples, ROIC, FCFabsolute “cheap P/E”
Banks / insurersP/B, ROE/ROTE, NIM, NPL, capitalEV/EBITDA as primary
SaaSRule of 40, NRR, FCF marginindustrial templates
Cyclicalsmid-cycle / normalized EPStrough P/E as “expensive”, peak as “cheap”
Asset-heavyEV/EBITDA, FCF, maint. capexP/E alone

⌁: Cyclicals look cheapest at the top (peak EPS). Low multiples can be a value trap.

DCF machine

Match cash to rate to value:

PathCashRateResult
FirmFCFFWACCEnterprise value
EquityFCFEr_eEquity value
# FCFF (CFA-style)
FCFF = EBIT(1−t) + D&A − Capex − ΔNWC
     = NI + NCC + Int(1−t) − FCInv − WCInv
     = CFO + Int(1−t) − Capex     # US GAAP: CFO after interest

FCFE = FCFF − Int(1−t) + NetBorrow
     = NI + NCC − FCInv − WCInv + NetBorrow

WACC = (E/V)·r_e + (D/V)·r_d·(1−t)   # V = market E+D
EV   = Σ FCFF_t/(1+WACC)^t + TV_n/(1+WACC)^n
TV   = FCFF_{n+1}/(WACC−g)           # require WACC>g
   or  EBITDA_{n+1}×ExitMult         # check implied g

Equity = EV − NetDebt − Pref − NCI (+ non-op assets)
Value/sh = Equity / diluted shares

Knobs: forecast margins/growth · WACC · g or exit mult · diluted count · TV share of EV (flag if >80%).

Tiny worked path (illustrative)
fcf  = [100, 108, 117, 126, 136]   # explicit FCFF
r,g  = 0.10, 0.03
pv   = Σ f/(1+r)**t
tv   = fcf[-1]*(1+g)/(r−g)
EV   = pv + tv/(1+r)**n
# then − net debt, ÷ diluted → IV/share; MoS vs bottom of range

!: Single-point DCF is theatre. Bear/base/bull; sensitivity on g/WACC/margins; sanity-check exit mult vs peers; fade ROIC→WACC in the stable phase.

Margin of safety

MoS = 1 − Price / IntrinsicValue
# Buy when Price ≤ IV_low × (1 − required_MoS)
# e.g. IV range 80–120, require 30% → buy ≤ ~56–70 vs low end — pick a rule and stick to it

MoS is an explicit haircut to estimated IV, sized to how wrong you might be — not “feels cheap.”

Graham shortcuts

Graham number = √(22.5 × EPS × BVPS)   # 15×P/E × 1.5×P/B — ceiling heuristic, NOT IV
Owner earnings = NI + D&A + other non-cash − maintenance capex (− ΔWC if needed)

Defensive screen (compressed): adequate size · current ≥2 · low LT debt · 10y positive EPS · long dividend record · EPS growth · P/E≤15 on avg EPS · P/B≤1.5 (or P/E×P/B≤22.5).

!: Owner earnings ≠ reported earnings. Maintenance capex is judgment. Graham number is a ceiling, not a DCF substitute.

Workflow

  1. EDGAR — 10-K / 10-Q / 20-F: Business, Risks, MD&A, statements + notes, auditor. IR decks = non-GAAP — reconcile.
  2. Normalize — one-offs, SBC, leases, op vs non-op, diluted shares, NCI.
  3. Ratios — 5–10y; DuPont on ROE; accruals & CCC.
  4. Comps — same model; EV multiples for industrials; P/B+ROE for banks.
  5. DCF — bear/base/bull; TV share; implied g; ROIC fade.
  6. MoS — vs bottom of credible IV range.
  7. Checklist — moat · capital allocation · dilution · cyclical peak · BS survival.

Data: SEC EDGAR + IR are primary. Aggregators (Macrotrends etc.): lag, TTM stitch errors, non-GAAP pollution — spot-check the 10-K.

Screening starters (hypothesis generators)
  • Quality: ROE/ROIC sustained, FCF≈NI, low accruals
  • Solvency: net debt/EBITDA sane, interest cover, BS survival
  • Price: peer-relative multiples + MoS to IV range — not absolute bands alone

AI-slop kill-list

SlopReality
EBITDA ≈ cashIgnores capex/WC/tax/SBC/interest → CFO/FCF/FCFF
DCF off raw NINeed FCFF/FCFE + reinvestment + interest shield
Ignore dilution/SBCPer diluted share; SBC = cost or dilution
Mix TTM↔fwd, GAAP↔non-GAAPLabel everything; reconcile footnotes
Gordon g≥WACCTV blows up; cap g; exit-mult cross-check
MoS as “feels cheap”Explicit % below estimated IV
Equity multiple on EV (or reverse)P/E world ≠ EV/EBITDA world
Bank ratios = industrialSkip EV/EBITDA; P/B, ROE/ROTE, NIM, NPL, capital
FCF=CFO−capex as FCFF w/o +Int(1−t)US GAAP CFO is after interest
Single-point DCFSensitivity; report a range
Absolute “cheap P/E” bandsSector + cycle + ROIC-growth context
Graham number as IVCeiling heuristic only

Also: value traps, channel stuffing, survivorship bias, anchoring, confirmation bias, recency bias — build the bear case before you buy.

Refs

  1. Damodaran
  2. Damodaran ch.15 (valuation)
  3. CFA — Free Cash Flow Valuation
  4. SEC — How to Read a 10-K
  5. SEC EDGAR
  6. SEC — Beginners’ Guide to Financial Statements
  7. Buffett 1986 — owner earnings
  8. Graham — The Intelligent Investor (Mr. Market, MoS)