---
name: gaapclose-asc842
description: Deterministic US GAAP ASC 842 (Leases) close assistant and local calculator. Use for lessee Operating vs. Finance classification, initial ROU & lease liability measurement (with IDC and lease incentives), multi-year amortization schedules, mid-term modification remeasurements, and off-market sale-leaseback accounting — 100% local with zero data uploads.
---

# GAAP Close — ASC 842 Local Skill Pack

Run deterministic US GAAP Topic 842 lease calculations locally using Python's standard library (`decimal.Decimal` with `ROUND_HALF_UP`). Never upload confidential lease registers to external cloud services.

## Authoritative Guardrails (FASB ASC 842)

1. **Lessee Classification (`ASC 842-10-25-2`):** Finance lease if **any 1** of 5 criteria is met: (a) ownership transfer, (b) reasonably certain purchase option, (c) major part of remaining economic life (policy: ≥75%), (d) PV of lease payments ≥ substantially all of fair value (policy: ≥90%), or (e) specialized asset with no alternative use. Otherwise Operating lease.
2. **Initial Measurement (`ASC 842-20-30-1`, `30-5`):**
   - `Lease Liability = PV(unpaid lease payments at IBR)`
   - `ROU Asset = Lease Liability + Prepaid Rent + Initial Direct Costs − Lease Incentives Received`
3. **Subsequent Measurement (`ASC 842-20-35`):**
   - **Operating Lease:** Single straight-line periodic cost; ROU amortization = `Straight-Line Cost − Liability Interest Accretion`.
   - **Finance Lease:** Separate interest expense + straight-line ROU amortization (front-loaded total expense).
4. **Lease Modifications (`ASC 842-10-25-8` to `25-13`):** If not a separate contract, update the discount rate at the modification date, remeasure the lease liability, and adjust the ROU asset (P&L gain/loss only on partial terminations).
5. **Sale-Leaseback (`ASC 842-40-30-2`):** Sale price above fair value is **additional financing**, not extra gain on sale.

## Deterministic Local CLI (`scripts/asc842_calc.py`)

```bash
python3 scripts/asc842_calc.py schedule --type operating --rent 100000 --term 5 --ibr 6.0 --idc 5000 --incentive 15000
python3 scripts/asc842_calc.py modify --old-liab 183339 --old-rou 183339 --new-rent 110000 --new-term 4 --new-ibr 7.0
python3 scripts/asc842_calc.py sale-leaseback --sale-price 2200000 --fair-value 2000000 --carrying-value 1600000 --rent 250000 --term 5 --ibr 6.0
```

*General information only, not accounting, audit or tax advice. Always verify against the current FASB Accounting Standards Codification and consult your auditors.*
