---
name: gaapclose-asc830
description: Deterministic US GAAP ASC 830 (Foreign Currency Matters) close assistant and local calculator. Use for functional currency assessment, FX transaction remeasurement, current-rate translation & 4-part CTA proofs, temporal remeasurement, intercompany long-term investment (LTI) designations, and 3-year highly inflationary CPI compounding checks — 100% local with zero data uploads.
---

# GAAP Close — ASC 830 Local Skill Pack

Run deterministic US GAAP Topic 830 calculations locally using Python's standard library (`decimal.Decimal` with `ROUND_HALF_UP`). Never upload private trial balances or subledgers to external servers.

## Authoritative Guardrails (FASB ASC 830)

1. **Functional currency (`ASC 830-10-55-5`):** Evaluate cash flows, sales prices, sales market, expenses, financing, and intercompany volume. Never default to legal domicile.
2. **Transactions (`ASC 830-20-35-1`):** Remeasure foreign-currency monetary assets/liabilities at closing spot rate through **net income** (`P&L`), unless designated as a hedge or long-term intercompany investment (`ASC 830-20-35-3` — settlement *not planned or anticipated* in the foreseeable future).
3. **Current Rate Translation (`ASC 830-30-45`):** Assets & liabilities at closing rate; P&L at weighted-average rate; equity at historical rates; plug goes to **CTA in OCI**. Always prove CTA independently using the 4-part proof.
4. **Highly Inflationary Economies (`ASC 830-10-45-11`):** Cumulative 3-year inflation approaching or exceeding **100%** triggers remeasurement into the reporting currency (Temporal Method, FX through P&L) starting the next reporting period.
5. **Foreign-Currency Leases (`ASC 842 + ASC 830`):** ROU asset is **nonmonetary** (stays at commencement spot rate); lease liability is **monetary** (remeasured at closing rate through P&L).

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

```bash
python3 scripts/asc830_calc.py cta-proof --open-na 300000 --ni 100000 --div 20000 --cap 0 --r-open 1.1000 --r-avg 1.1500 --r-div 1.1800 --r-close 1.2000
python3 scripts/asc830_calc.py fx-payable --fc 100000 --r-init 1.0800 --r-me 1.0950 --r-settle 1.0700
python3 scripts/asc830_calc.py cpi-3yr --y1 25.0 --y2 28.0 --y3 30.0
```

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