@v587d/capital-generation 2.7.6 → 2.7.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +78 -0
- package/README.md +5 -4
- package/THIRD_PARTY_NOTICES.md +14 -3
- package/capital-config/client.js +4 -4
- package/capital-config/package.json +1 -1
- package/capital-watchlist/package.json +1 -1
- package/chart-ui/package.json +1 -1
- package/lib/agents/selected-skills-provider.js +91 -41
- package/lib/index.js +3 -2
- package/lib/web-retriever/local-fetch.d.ts +1 -1
- package/lib/web-retriever/local-fetch.js +1 -1
- package/lib/web-retriever/wind-client.d.ts +1 -1
- package/lib/web-retriever/wind-client.js +1 -1
- package/package.json +2 -1
- package/selected-skills/README.md +3 -1
- package/selected-skills/catalog.js +155 -0
- package/selected-skills/financeskills/LICENSE +21 -0
- package/selected-skills/financeskills/UPSTREAM.md +202 -0
- package/selected-skills/financeskills/skills/ai-anomaly-detection/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/ai-anomaly-detection/SKILL.md +84 -0
- package/selected-skills/financeskills/skills/ai-anomaly-detection/references/feature-engineering.md +20 -0
- package/selected-skills/financeskills/skills/ai-anomaly-detection/references/ml-algorithms.md +28 -0
- package/selected-skills/financeskills/skills/aro-computation/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/aro-computation/SKILL.md +82 -0
- package/selected-skills/financeskills/skills/aro-computation/references/aro-standards.md +22 -0
- package/selected-skills/financeskills/skills/aro-computation/references/pv-math.md +27 -0
- package/selected-skills/financeskills/skills/audit-checklist/EXAMPLE.md +17 -0
- package/selected-skills/financeskills/skills/audit-checklist/SKILL.md +77 -0
- package/selected-skills/financeskills/skills/audit-checklist/references/internal-controls.md +36 -0
- package/selected-skills/financeskills/skills/audit-checklist/references/isa-standards.md +26 -0
- package/selected-skills/financeskills/skills/automated-reconciliation/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/automated-reconciliation/SKILL.md +87 -0
- package/selected-skills/financeskills/skills/automated-reconciliation/assets/reconciliation-statement-template.md +31 -0
- package/selected-skills/financeskills/skills/automated-reconciliation/references/fuzzy-logic.md +27 -0
- package/selected-skills/financeskills/skills/automated-reconciliation/references/rec-controls.md +28 -0
- package/selected-skills/financeskills/skills/banking-compliance/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/banking-compliance/SKILL.md +82 -0
- package/selected-skills/financeskills/skills/banking-compliance/references/basel-iii-framework.md +26 -0
- package/selected-skills/financeskills/skills/banking-compliance/references/risk-weights.md +32 -0
- package/selected-skills/financeskills/skills/budget-forecast/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/budget-forecast/SKILL.md +87 -0
- package/selected-skills/financeskills/skills/budget-forecast/references/forecasting-best-practices.md +26 -0
- package/selected-skills/financeskills/skills/budget-forecast/references/scenario-analysis.md +25 -0
- package/selected-skills/financeskills/skills/close-management/EXAMPLE.md +17 -0
- package/selected-skills/financeskills/skills/close-management/SKILL.md +85 -0
- package/selected-skills/financeskills/skills/close-management/references/close-task-library.md +32 -0
- package/selected-skills/financeskills/skills/company-valuation/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/company-valuation/SKILL.md +80 -0
- package/selected-skills/financeskills/skills/company-valuation/references/terminal-value-guide.md +33 -0
- package/selected-skills/financeskills/skills/corporate-consolidation/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/corporate-consolidation/SKILL.md +84 -0
- package/selected-skills/financeskills/skills/corporate-consolidation/references/consolidation-standard.md +28 -0
- package/selected-skills/financeskills/skills/corporate-consolidation/references/minority-interest.md +25 -0
- package/selected-skills/financeskills/skills/credit-analysis/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/credit-analysis/SKILL.md +84 -0
- package/selected-skills/financeskills/skills/credit-analysis/references/covenant-guide.md +26 -0
- package/selected-skills/financeskills/skills/crypto-accounting/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/crypto-accounting/SKILL.md +81 -0
- package/selected-skills/financeskills/skills/crypto-accounting/references/fasb-crypto.md +26 -0
- package/selected-skills/financeskills/skills/crypto-accounting/references/ifrs-crypto.md +25 -0
- package/selected-skills/financeskills/skills/cvp-breakeven/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/cvp-breakeven/SKILL.md +78 -0
- package/selected-skills/financeskills/skills/cvp-breakeven/references/cvp-patterns.md +28 -0
- package/selected-skills/financeskills/skills/debt-payoff/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/debt-payoff/SKILL.md +94 -0
- package/selected-skills/financeskills/skills/debt-payoff/references/debt-strategies.md +32 -0
- package/selected-skills/financeskills/skills/debt-payoff/references/interest-calculations.md +27 -0
- package/selected-skills/financeskills/skills/debt-restructuring/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/debt-restructuring/SKILL.md +79 -0
- package/selected-skills/financeskills/skills/debt-restructuring/references/creditor-priority.md +26 -0
- package/selected-skills/financeskills/skills/debt-restructuring/references/restructuring-types.md +24 -0
- package/selected-skills/financeskills/skills/deferred-tax/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/deferred-tax/SKILL.md +86 -0
- package/selected-skills/financeskills/skills/deferred-tax/references/td-catalogue.md +39 -0
- package/selected-skills/financeskills/skills/earned-value-mgmt/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/earned-value-mgmt/SKILL.md +79 -0
- package/selected-skills/financeskills/skills/earned-value-mgmt/references/forecasting-eac.md +27 -0
- package/selected-skills/financeskills/skills/earned-value-mgmt/references/pmi-evm.md +29 -0
- package/selected-skills/financeskills/skills/ecl-computation/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/ecl-computation/SKILL.md +85 -0
- package/selected-skills/financeskills/skills/ecl-computation/references/ifrs9-standard.md +27 -0
- package/selected-skills/financeskills/skills/ecl-computation/references/risk-modeling.md +26 -0
- package/selected-skills/financeskills/skills/esg-reporting/EXAMPLE.md +17 -0
- package/selected-skills/financeskills/skills/esg-reporting/SKILL.md +79 -0
- package/selected-skills/financeskills/skills/esg-reporting/references/ghg-protocol.md +22 -0
- package/selected-skills/financeskills/skills/esg-reporting/references/sasb-map.md +25 -0
- package/selected-skills/financeskills/skills/financial-analysis/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/financial-analysis/SKILL.md +108 -0
- package/selected-skills/financeskills/skills/financial-analysis/assets/analysis-memo-template.md +31 -0
- package/selected-skills/financeskills/skills/financial-analysis/references/accounting-standards.md +45 -0
- package/selected-skills/financeskills/skills/financial-analysis/references/ratio-definitions.md +14 -0
- package/selected-skills/financeskills/skills/fixed-asset-accounting/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/fixed-asset-accounting/SKILL.md +78 -0
- package/selected-skills/financeskills/skills/fixed-asset-accounting/references/useful-life-guide.md +30 -0
- package/selected-skills/financeskills/skills/forensic-accounting/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/forensic-accounting/SKILL.md +91 -0
- package/selected-skills/financeskills/skills/forensic-accounting/references/benfords-law.md +24 -0
- package/selected-skills/financeskills/skills/forensic-accounting/references/fraud-triangle.md +26 -0
- package/selected-skills/financeskills/skills/insurance-reserving/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/insurance-reserving/SKILL.md +82 -0
- package/selected-skills/financeskills/skills/insurance-reserving/references/actuarial-methods.md +33 -0
- package/selected-skills/financeskills/skills/insurance-reserving/references/insurance-metrics.md +26 -0
- package/selected-skills/financeskills/skills/intercompany-accounting/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/intercompany-accounting/SKILL.md +79 -0
- package/selected-skills/financeskills/skills/intercompany-accounting/references/elimination-entries.md +35 -0
- package/selected-skills/financeskills/skills/inventory-costing/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/inventory-costing/SKILL.md +80 -0
- package/selected-skills/financeskills/skills/inventory-costing/references/costing-examples.md +31 -0
- package/selected-skills/financeskills/skills/investment-analysis/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/investment-analysis/SKILL.md +82 -0
- package/selected-skills/financeskills/skills/investment-analysis/references/competitive-advantage.md +31 -0
- package/selected-skills/financeskills/skills/investment-analysis/references/valuation-guide.md +29 -0
- package/selected-skills/financeskills/skills/journal-entry/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/journal-entry/SKILL.md +94 -0
- package/selected-skills/financeskills/skills/journal-entry/assets/journal-entry-template.md +21 -0
- package/selected-skills/financeskills/skills/journal-entry/references/entry-patterns.md +51 -0
- package/selected-skills/financeskills/skills/lbo-modeling/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/lbo-modeling/SKILL.md +88 -0
- package/selected-skills/financeskills/skills/lbo-modeling/references/debt-structures.md +22 -0
- package/selected-skills/financeskills/skills/lbo-modeling/references/lbo-best-practices.md +27 -0
- package/selected-skills/financeskills/skills/lease-accounting/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/lease-accounting/SKILL.md +88 -0
- package/selected-skills/financeskills/skills/lease-accounting/assets/commencement-summary-template.md +28 -0
- package/selected-skills/financeskills/skills/lease-accounting/references/ibr-guide.md +26 -0
- package/selected-skills/financeskills/skills/net-worth-tracker/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/net-worth-tracker/SKILL.md +98 -0
- package/selected-skills/financeskills/skills/net-worth-tracker/references/asset-valuation.md +40 -0
- package/selected-skills/financeskills/skills/net-worth-tracker/references/net-worth-benchmarks.md +33 -0
- package/selected-skills/financeskills/skills/nlp-earnings-sentiment/EXAMPLE.md +17 -0
- package/selected-skills/financeskills/skills/nlp-earnings-sentiment/SKILL.md +77 -0
- package/selected-skills/financeskills/skills/nlp-earnings-sentiment/references/finbert-guide.md +26 -0
- package/selected-skills/financeskills/skills/nlp-earnings-sentiment/references/linguistic-finance.md +23 -0
- package/selected-skills/financeskills/skills/oil-gas-valuation/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/oil-gas-valuation/SKILL.md +86 -0
- package/selected-skills/financeskills/skills/oil-gas-valuation/references/sec-reporting.md +22 -0
- package/selected-skills/financeskills/skills/oil-gas-valuation/references/spe-standards.md +25 -0
- package/selected-skills/financeskills/skills/personal-budgeting/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/personal-budgeting/SKILL.md +100 -0
- package/selected-skills/financeskills/skills/personal-budgeting/references/budgeting-methods.md +40 -0
- package/selected-skills/financeskills/skills/personal-budgeting/references/spending-categories.md +40 -0
- package/selected-skills/financeskills/skills/predictive-burn-rate/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/predictive-burn-rate/SKILL.md +82 -0
- package/selected-skills/financeskills/skills/predictive-burn-rate/references/startup-metrics.md +27 -0
- package/selected-skills/financeskills/skills/predictive-burn-rate/references/time-series-forecasting.md +22 -0
- package/selected-skills/financeskills/skills/product-profitability/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/product-profitability/SKILL.md +83 -0
- package/selected-skills/financeskills/skills/product-profitability/references/allocation-logic.md +28 -0
- package/selected-skills/financeskills/skills/product-profitability/references/unit-economics.md +30 -0
- package/selected-skills/financeskills/skills/retirement-planning/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/retirement-planning/SKILL.md +98 -0
- package/selected-skills/financeskills/skills/retirement-planning/references/compound-growth.md +38 -0
- package/selected-skills/financeskills/skills/retirement-planning/references/retirement-fundamentals.md +29 -0
- package/selected-skills/financeskills/skills/revenue-recognition/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/revenue-recognition/SKILL.md +86 -0
- package/selected-skills/financeskills/skills/revenue-recognition/assets/allocation-workpaper-template.md +30 -0
- package/selected-skills/financeskills/skills/revenue-recognition/references/ifrs15-guide.md +28 -0
- package/selected-skills/financeskills/skills/revenue-recognition/references/saas-rev-rec.md +26 -0
- package/selected-skills/financeskills/skills/risk-assessment/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/risk-assessment/SKILL.md +83 -0
- package/selected-skills/financeskills/skills/risk-assessment/references/hedging-guide.md +24 -0
- package/selected-skills/financeskills/skills/risk-assessment/references/risk-metrics.md +24 -0
- package/selected-skills/financeskills/skills/sox-compliance/EXAMPLE.md +17 -0
- package/selected-skills/financeskills/skills/sox-compliance/SKILL.md +88 -0
- package/selected-skills/financeskills/skills/sox-compliance/references/sampling-methodology.md +27 -0
- package/selected-skills/financeskills/skills/startup-valuation/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/startup-valuation/SKILL.md +88 -0
- package/selected-skills/financeskills/skills/startup-valuation/references/berkus-method.md +25 -0
- package/selected-skills/financeskills/skills/startup-valuation/references/vc-method.md +23 -0
- package/selected-skills/financeskills/skills/statement-preparation/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/statement-preparation/SKILL.md +86 -0
- package/selected-skills/financeskills/skills/statement-preparation/references/accruals-deferrals.md +24 -0
- package/selected-skills/financeskills/skills/statement-preparation/references/cash-flow-method.md +32 -0
- package/selected-skills/financeskills/skills/tax-efficient-investing/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/tax-efficient-investing/SKILL.md +97 -0
- package/selected-skills/financeskills/skills/tax-efficient-investing/references/account-types.md +33 -0
- package/selected-skills/financeskills/skills/tax-efficient-investing/references/asset-location.md +36 -0
- package/selected-skills/financeskills/skills/tax-planning/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/tax-planning/SKILL.md +93 -0
- package/selected-skills/financeskills/skills/tax-planning/references/common-deductions.md +28 -0
- package/selected-skills/financeskills/skills/tax-planning/references/tax-code-lookup.md +25 -0
- package/selected-skills/financeskills/skills/three-statement-modeling/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/three-statement-modeling/SKILL.md +84 -0
- package/selected-skills/financeskills/skills/three-statement-modeling/references/model-checks.md +32 -0
- package/selected-skills/financeskills/skills/treasury-management/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/treasury-management/SKILL.md +83 -0
- package/selected-skills/financeskills/skills/treasury-management/references/fx-hedging.md +27 -0
- package/selected-skills/financeskills/skills/treasury-management/references/liquidity-metrics.md +24 -0
- package/selected-skills/financeskills/skills/variance-analysis/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/variance-analysis/SKILL.md +78 -0
- package/selected-skills/financeskills/skills/variance-analysis/references/overhead-logic.md +24 -0
- package/selected-skills/financeskills/skills/variance-analysis/references/variance-math.md +35 -0
- package/selected-skills/financeskills/skills/venture-debt/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/venture-debt/SKILL.md +84 -0
- package/selected-skills/financeskills/skills/venture-debt/references/saas-debt-metrics.md +26 -0
- package/selected-skills/financeskills/skills/venture-debt/references/venture-lending.md +23 -0
- package/selected-skills/financeskills/skills/wacc-computation/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/wacc-computation/SKILL.md +98 -0
- package/selected-skills/financeskills/skills/wacc-computation/assets/wacc-memo-template.md +40 -0
- package/selected-skills/financeskills/skills/wacc-computation/references/beta-math.md +24 -0
- package/selected-skills/financeskills/skills/wacc-computation/references/capm-basics.md +24 -0
- package/selected-skills/financeskills/skills/working-capital-analysis/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/working-capital-analysis/SKILL.md +83 -0
- package/selected-skills/financeskills/skills/working-capital-analysis/references/wc-metrics.md +30 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# FASB Crypto Accounting: ASU 2023-08 (ASC 350-60)
|
|
2
|
+
|
|
3
|
+
## Scope Test (all six required)
|
|
4
|
+
1. Meets the definition of an intangible asset;
|
|
5
|
+
2. Holder has no enforceable claims on underlying goods/services/other assets (excludes most stablecoins and wrapped/asset-backed tokens);
|
|
6
|
+
3. Created/resides on a distributed ledger;
|
|
7
|
+
4. Secured by cryptography;
|
|
8
|
+
5. Fungible (excludes NFTs);
|
|
9
|
+
6. Not created by the reporting entity or its related parties (excludes self-issued tokens).
|
|
10
|
+
|
|
11
|
+
## Measurement
|
|
12
|
+
**Fair value through net income, every reporting period** (ASC 820). This replaced the old cost-less-impairment model — both gains AND losses now flow through P&L. Effective fiscal years beginning after 15 Dec 2024; early adoption was permitted.
|
|
13
|
+
|
|
14
|
+
## Presentation & Disclosure
|
|
15
|
+
- Balance sheet: crypto assets presented SEPARATELY from other intangibles.
|
|
16
|
+
- Income statement: remeasurement gains/losses presented separately from impairments of other intangibles.
|
|
17
|
+
- Disclosures: per significant holding — name, cost basis, fair value, units; rollforward (additions, dispositions, gains, losses); restrictions; method for cost basis (FIFO/specific ID).
|
|
18
|
+
|
|
19
|
+
## Out-of-Scope Items (still messy)
|
|
20
|
+
- **Stablecoins**: fail criterion 2 → financial asset analysis; often amortized cost if redeemable 1:1.
|
|
21
|
+
- **NFTs**: remain under legacy intangible model (cost less impairment) — non-fungible.
|
|
22
|
+
- **Self-issued tokens**: no recognized asset for the issuer; proceeds analysis → liability/revenue/equity question under contract terms.
|
|
23
|
+
- **Staking rewards**: recognize when control obtained, at fair value — revenue vs. other income classification judgment.
|
|
24
|
+
|
|
25
|
+
## IFRS Contrast
|
|
26
|
+
No crypto-specific standard: IAS 38 (cost or revaluation-through-OCI if active market) or IAS 2 at FV-less-costs-to-sell for broker-traders. The US GAAP FV-through-P&L answer is currently the cleaner model — see ifrs-crypto.md.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# IFRS Accounting for Digital Assets
|
|
2
|
+
|
|
3
|
+
Guidance on how to apply International Financial Reporting Standards to cryptocurrencies and other digital assets.
|
|
4
|
+
|
|
5
|
+
## 🏛️ Classification Logic
|
|
6
|
+
|
|
7
|
+
### 1. Intangible Assets (IAS 38)
|
|
8
|
+
The standard treatment for cryptocurrencies like Bitcoin.
|
|
9
|
+
- **Criteria**: Identifiable non-monetary asset without physical substance.
|
|
10
|
+
- **Measurement**: Cost model or Revaluation model (if an active market exists).
|
|
11
|
+
|
|
12
|
+
### 2. Inventory (IAS 2)
|
|
13
|
+
Applicable if the entity holds the assets for sale in the ordinary course of business (e.g., broker-dealers).
|
|
14
|
+
- **Measurement**: Lower of cost and net realizable value (NRV).
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
## 🔍 Key Challenges
|
|
19
|
+
- **Impairment**: Determining if a price drop is "prolonged" or "material."
|
|
20
|
+
- **Custody**: Verifying that the entity has control over the private keys.
|
|
21
|
+
- **Valuation**: Selecting a representative exchange price (Level 1 input).
|
|
22
|
+
|
|
23
|
+
## 🔗 Sources
|
|
24
|
+
- [IFRS Interpretations Committee: Holdings of Cryptocurrencies](https://www.ifrs.org/projects/completed-projects/2019/holdings-of-cryptocurrencies/)
|
|
25
|
+
- [PwC: Crypto-assets: IFRS reporting](https://www.pwc.com/gx/en/audit-assurance/publications/ifrs-reporting-crypto-assets.html)
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Worked Example - cvp-breakeven
|
|
2
|
+
|
|
3
|
+
## Ask
|
|
4
|
+
|
|
5
|
+
> Price 1,200, variable cost 780, fixed costs 8,400,000/year. How many units to break even, and how many for 2,100,000 after-tax profit at 30% tax?
|
|
6
|
+
|
|
7
|
+
## What a correct response contains
|
|
8
|
+
|
|
9
|
+
Contribution 420/unit. Breakeven 20,000 units (24,000,000 revenue). After-tax target needs pre-tax 3,000,000 -> (8,400,000+3,000,000)/420 = 27,143 units.
|
|
10
|
+
|
|
11
|
+
## File-driven variant
|
|
12
|
+
|
|
13
|
+
With fixture(s) `evals/files/product_economics.csv`:
|
|
14
|
+
|
|
15
|
+
> From the attached unit economics (evals/files/product_economics.csv): compute breakeven units and sales, units needed for the target profit, margin of safety at current volume, and degree of operating leverage.
|
|
16
|
+
|
|
17
|
+
Expected: Breakeven 6,000 units ($300,000); target requires 8,000 units; MOS 25%; DOL 4.0.
|
|
18
|
+
|
|
19
|
+
## Compute, don't estimate
|
|
20
|
+
|
|
21
|
+
All figures above come from [`scripts/calculate.py`](./scripts/calculate.py) - import its functions rather than doing arithmetic in prose.
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: cvp-breakeven
|
|
3
|
+
description: When the user wants cost-volume-profit analysis, breakeven points, or operating leverage assessment. Also use when the user mentions "breakeven," "contribution margin," "margin of safety," "operating leverage," "how many units to be profitable," "target profit volume," or "should we accept this order below full cost."
|
|
4
|
+
metadata:
|
|
5
|
+
version: 1.0.0
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Cost-Volume-Profit & Breakeven Analysis
|
|
9
|
+
|
|
10
|
+
You are a Management Accountant. Your goal is to expose how profit responds to volume, price, and cost structure — and to use that to answer real decisions: pricing floors, special orders, capacity steps, and risk.
|
|
11
|
+
|
|
12
|
+
## Initial Assessment
|
|
13
|
+
|
|
14
|
+
1. **Cost Structure Split**
|
|
15
|
+
- Separate fixed from variable honestly (regression/high-low on history beats labels — "salaries" often contains variable overtime; "logistics" contains fixed contracts).
|
|
16
|
+
- Identify STEP costs (supervision, warehouse space, license tiers) and their breakpoints.
|
|
17
|
+
|
|
18
|
+
2. **Decision Context**
|
|
19
|
+
- Single product, multi-product mix, special order, or capacity decision — each uses different math.
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## CVP Framework
|
|
24
|
+
|
|
25
|
+
### Core Formulas
|
|
26
|
+
- `Contribution per unit = Price − Variable cost per unit`
|
|
27
|
+
- `CM ratio = Contribution / Price`
|
|
28
|
+
- `Breakeven units = Fixed costs / contribution per unit`
|
|
29
|
+
- `Breakeven revenue = Fixed costs / CM ratio`
|
|
30
|
+
- `Target profit volume = (Fixed + target profit) / contribution per unit` (pre-tax; for after-tax: target/(1−t))
|
|
31
|
+
- `Margin of safety % = (Actual − breakeven revenue)/Actual`
|
|
32
|
+
- `Operating leverage = Contribution / Operating income` — at DOL 4, a 10% volume drop cuts profit 40%.
|
|
33
|
+
|
|
34
|
+
### Multi-Product Mix
|
|
35
|
+
Weighted-average contribution at the CONSTANT MIX assumption: `BE units = Fixed / Σ(mix% × unit contribution)`. State the assumption loudly — mix shift is the usual reason "we hit breakeven volume but lost money."
|
|
36
|
+
|
|
37
|
+
### Special Order / Pricing Floor Logic
|
|
38
|
+
Accept below full cost IF: price > variable cost + order-specific incremental costs, spare capacity exists (else add opportunity cost of displaced contribution), and no market-spoilage effect (price leakage to existing customers). Full-cost allocations are irrelevant to the decision (product-profitability CM hierarchy).
|
|
39
|
+
|
|
40
|
+
---
|
|
41
|
+
|
|
42
|
+
## Technical Analysis Steps
|
|
43
|
+
|
|
44
|
+
1. **Validate the cost split with code**: regress total cost on volume (slope = variable rate, intercept = fixed proxy); R² < 0.7 → segment the data or find the second driver.
|
|
45
|
+
2. **Breakeven with steps**: piecewise fixed costs create MULTIPLE breakeven points — chart profit vs. volume across the full range including the steps.
|
|
46
|
+
3. **Risk view**: margin of safety, DOL, and a sensitivity table (price ±5%, volume ±10%, variable cost ±5%) — price moves dominate; show why (price flows straight to contribution).
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
## Output Format
|
|
51
|
+
|
|
52
|
+
### CVP Analysis
|
|
53
|
+
|
|
54
|
+
**Cost Structure**: fixed/variable/step split with derivation basis.
|
|
55
|
+
|
|
56
|
+
**Breakeven**: units and revenue, with the profit-volume chart description (including steps).
|
|
57
|
+
|
|
58
|
+
**Decision Answer**: the specific question answered with incremental logic shown.
|
|
59
|
+
|
|
60
|
+
**Risk Profile**: margin of safety, operating leverage, sensitivity table.
|
|
61
|
+
|
|
62
|
+
---
|
|
63
|
+
|
|
64
|
+
## Scripts
|
|
65
|
+
- [calculate.py](./scripts/calculate.py): Deterministic functions for this skill's core computations. Run `python3 scripts/calculate.py` to self-test; import the functions instead of doing mental math.
|
|
66
|
+
|
|
67
|
+
---
|
|
68
|
+
|
|
69
|
+
## References
|
|
70
|
+
- [CVP Decision Patterns](./references/cvp-patterns.md): Worked special-order, step-cost, and mix-shift examples.
|
|
71
|
+
|
|
72
|
+
---
|
|
73
|
+
|
|
74
|
+
## Related Skills
|
|
75
|
+
- **product-profitability**: The contribution hierarchy feeding CVP.
|
|
76
|
+
- **variance-analysis**: Explaining actual vs. CVP-predicted profit.
|
|
77
|
+
- **budget-forecast**: CVP as the engine of flexible budgets.
|
|
78
|
+
- **pricing decisions**: Pair with unit economics for pricing floors.
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# CVP Decision Patterns (worked)
|
|
2
|
+
|
|
3
|
+
## 1. Basic Breakeven With Target Profit
|
|
4
|
+
Price 500, variable 320, fixed 5,400,000. Contribution 180; CM ratio 36%.
|
|
5
|
+
- Breakeven = 30,000 units / 15,000,000 revenue.
|
|
6
|
+
- After-tax target 1,260,000 at 30% tax → pre-tax 1,800,000 → volume = (5,400,000+1,800,000)/180 = **40,000 units**.
|
|
7
|
+
|
|
8
|
+
## 2. Step Cost Trap
|
|
9
|
+
Same product, but each 10,000 units of capacity needs a supervisor (600,000).
|
|
10
|
+
Profit at 30,000 units with 3 supervisors: contribution 5,400,000 − fixed 5,400,000 − 1,800,000 = **−1,800,000 (loss!)** — the naive breakeven ignored the steps. Recompute piecewise: breakeven actually lands at 40,000 units (4 supervisors: (5,400,000+2,400,000)/180 = 43,333 → check against the 40,001–50,000 band: feasible at 43,333). Always test the breakeven against the step band it falls in.
|
|
11
|
+
|
|
12
|
+
## 3. Special Order
|
|
13
|
+
Capacity 100,000; running at 70,000. Export order: 15,000 units at 360 (below full cost of 410 = 320 var + 90 allocated fixed). Incremental freight 12/unit.
|
|
14
|
+
- Incremental contribution = (360 − 320 − 12) × 15,000 = **420,000 → accept**, since spare capacity and separable market.
|
|
15
|
+
- Same order at 95,000 utilization: displaces 10,000 regular units → opportunity cost 1,800,000 vs. order contribution 420,000 → **reject**.
|
|
16
|
+
|
|
17
|
+
## 4. Mix Shift Reality
|
|
18
|
+
Two products: A (contribution 200, 60% of mix), B (contribution 80, 40%). WACM = 152; fixed 3,040,000 → BE 20,000 total units.
|
|
19
|
+
Actual mix shifts to 40/60: WACM = 128 → BE rises to 23,750. Volume hit 21,000 — above old breakeven, below the new one → loss despite "beating breakeven." Track contribution-weighted volume, not raw units.
|
|
20
|
+
|
|
21
|
+
## 5. Operating Leverage Comparison
|
|
22
|
+
Two structures, same 1,000,000 profit at current volume:
|
|
23
|
+
- Automated: contribution 4,000,000, DOL 4.0
|
|
24
|
+
- Manual: contribution 1,600,000, DOL 1.6
|
|
25
|
+
Volume −15% → automated profit −60% (400,000); manual −24% (760,000). High fixed-cost structures are bets on volume; say so when proposing automation.
|
|
26
|
+
|
|
27
|
+
## 6. Price vs. Volume Sensitivity Asymmetry
|
|
28
|
+
At CM ratio 36%: a 5% price cut needs `5/(36−5) ≈ 16%` volume growth just to hold contribution. The generic discounting request almost never clears this bar — make sales prove the elasticity.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Worked Example - debt-payoff
|
|
2
|
+
|
|
3
|
+
## Ask
|
|
4
|
+
|
|
5
|
+
> I have three debts: a credit card with a $4,500 balance at 22% APR ($90 minimum), a car loan with $8,000 at 6% APR ($180 minimum), and a student loan with $12,000 at 5% APR ($130 minimum). I can put $600/month total toward debt. Which strategy saves me more money — avalanche or snowball?
|
|
6
|
+
|
|
7
|
+
## What a correct response contains
|
|
8
|
+
|
|
9
|
+
Should list all three debts clearly. Should model both avalanche and snowball strategies month by month. Should show that avalanche pays off the credit card first (highest rate 22%) and saves more in total interest. Should compare total interest paid and total months to debt-free under each strategy. Should recommend avalanche for this user given the large interest-rate gap.
|
|
10
|
+
|
|
11
|
+
## File-driven variant
|
|
12
|
+
|
|
13
|
+
With fixture `evals/files/debts.csv`:
|
|
14
|
+
|
|
15
|
+
> From the attached debt list (evals/files/debts.csv), calculate the total interest paid and months to debt-free under both avalanche and snowball, with $200/month extra payment. Show which strategy saves more.
|
|
16
|
+
|
|
17
|
+
Expected: Avalanche — 38 months, $2,847 total interest. Snowball — 38 months, $3,201 total interest. Avalanche saves $354 in interest.
|
|
18
|
+
|
|
19
|
+
## Compute, don't estimate
|
|
20
|
+
|
|
21
|
+
All figures above come from [`scripts/calculate.py`](./scripts/calculate.py) — import its functions rather than doing arithmetic in prose.
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: debt-payoff
|
|
3
|
+
description: When the user wants to pay off debt, compare the avalanche vs. snowball strategy, model a payoff timeline, calculate total interest paid, or find the fastest way out of debt. Also use when the user mentions "credit card debt," "student loans," "debt free," "minimum payments," "how long to pay off," or "which debt first."
|
|
4
|
+
metadata:
|
|
5
|
+
version: 1.0.0
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Debt Payoff Planning
|
|
9
|
+
|
|
10
|
+
You are a Debt Elimination Coach. Your goal is to build a mathematically sound payoff plan that minimises total interest paid while keeping the user motivated.
|
|
11
|
+
|
|
12
|
+
## Initial Assessment
|
|
13
|
+
|
|
14
|
+
1. **Debt Inventory**
|
|
15
|
+
- List all debts: name, current balance, annual interest rate, minimum monthly payment.
|
|
16
|
+
- Are any debts in collections or subject to a 0% promotional rate with an expiry date?
|
|
17
|
+
|
|
18
|
+
2. **Available Cash Flow**
|
|
19
|
+
- How much can the user put toward debt each month (minimums + any extra)?
|
|
20
|
+
- Is this fixed or variable?
|
|
21
|
+
|
|
22
|
+
3. **Behavioural Preference**
|
|
23
|
+
- Does the user prioritise **mathematical optimality** (avalanche) or **psychological quick wins** (snowball)?
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
## Payoff Strategies
|
|
28
|
+
|
|
29
|
+
### Avalanche Method (Lowest Total Interest)
|
|
30
|
+
1. Pay the minimum on every debt.
|
|
31
|
+
2. Direct all extra cash to the debt with the **highest annual interest rate**.
|
|
32
|
+
3. When that debt is paid off, roll its payment to the next highest-rate debt.
|
|
33
|
+
|
|
34
|
+
Best for: minimising total interest paid. Mathematically optimal.
|
|
35
|
+
|
|
36
|
+
### Snowball Method (Fastest Motivational Wins)
|
|
37
|
+
1. Pay the minimum on every debt.
|
|
38
|
+
2. Direct all extra cash to the debt with the **lowest balance**.
|
|
39
|
+
3. When that debt is paid off, roll its payment to the next lowest-balance debt.
|
|
40
|
+
|
|
41
|
+
Best for: users who need early wins to stay motivated. May cost more in interest.
|
|
42
|
+
|
|
43
|
+
### Hybrid Approach
|
|
44
|
+
Start with the snowball to clear one or two small balances, then switch to avalanche for the remaining high-rate debts.
|
|
45
|
+
|
|
46
|
+
---
|
|
47
|
+
|
|
48
|
+
## Technical Steps
|
|
49
|
+
|
|
50
|
+
### 1. Compute Monthly Interest per Debt
|
|
51
|
+
`Monthly Interest = Balance × (Annual Rate / 12)`
|
|
52
|
+
|
|
53
|
+
### 2. Model the Payoff Schedule
|
|
54
|
+
Simulate month by month: apply interest, pay minimums, apply extra to target debt.
|
|
55
|
+
|
|
56
|
+
### 3. Compare Strategies
|
|
57
|
+
Generate side-by-side: months to debt-free, total interest paid, total amount paid.
|
|
58
|
+
|
|
59
|
+
### 4. Sensitivity Check
|
|
60
|
+
What happens if the user increases the monthly extra payment by $100 or $200?
|
|
61
|
+
|
|
62
|
+
---
|
|
63
|
+
|
|
64
|
+
## Output Format
|
|
65
|
+
|
|
66
|
+
**Debt Inventory Table**
|
|
67
|
+
- Balance, rate, minimum payment, projected payoff month per strategy.
|
|
68
|
+
|
|
69
|
+
**Strategy Comparison**
|
|
70
|
+
- Avalanche vs. Snowball: total interest, total paid, months to debt-free.
|
|
71
|
+
|
|
72
|
+
**Payoff Schedule**
|
|
73
|
+
- Month-by-month balances for each debt under the chosen strategy.
|
|
74
|
+
|
|
75
|
+
**Acceleration Scenarios**
|
|
76
|
+
- Impact of +$100, +$200 extra monthly payment.
|
|
77
|
+
|
|
78
|
+
---
|
|
79
|
+
|
|
80
|
+
## Scripts
|
|
81
|
+
- [calculate.py](./scripts/calculate.py): Deterministic functions for this skill's core computations. Run `python3 scripts/calculate.py` to self-test; import the functions instead of doing mental math.
|
|
82
|
+
|
|
83
|
+
---
|
|
84
|
+
|
|
85
|
+
## References
|
|
86
|
+
- [Debt Strategies Guide](./references/debt-strategies.md): Avalanche vs. snowball research and behavioural finance insights.
|
|
87
|
+
- [Interest Calculation Reference](./references/interest-calculations.md): How daily vs. monthly compounding affects payoff timelines.
|
|
88
|
+
|
|
89
|
+
---
|
|
90
|
+
|
|
91
|
+
## Related Skills
|
|
92
|
+
- **personal-budgeting**: Identify the monthly surplus to allocate as extra debt payment.
|
|
93
|
+
- **tax-planning**: Some interest (student loans, mortgages) may be tax-deductible — factor this in.
|
|
94
|
+
- **net-worth-tracker**: Track liability reduction as net worth improvement.
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Debt Payoff Strategies
|
|
2
|
+
|
|
3
|
+
## Avalanche Method
|
|
4
|
+
Target the debt with the **highest interest rate** first while paying minimums on all others.
|
|
5
|
+
|
|
6
|
+
**Why it wins mathematically**: High-rate debt accrues interest fastest. Eliminating it first reduces the total interest pool immediately.
|
|
7
|
+
|
|
8
|
+
**Research backing**: A 2012 study by Amar et al. (*Journal of Marketing Research*) confirmed that the avalanche method minimises total interest paid in all cases.
|
|
9
|
+
|
|
10
|
+
## Snowball Method
|
|
11
|
+
Target the debt with the **lowest balance** first while paying minimums on all others.
|
|
12
|
+
|
|
13
|
+
**Why it wins behaviourally**: Clearing a debt account produces a concrete "win" that boosts motivation. Dave Ramsey popularised this approach in *The Total Money Makeover* (2003).
|
|
14
|
+
|
|
15
|
+
**Research backing**: Keinan & Kivetz (2011) found that psychological momentum from small wins can improve follow-through on long-term financial plans.
|
|
16
|
+
|
|
17
|
+
## When Avalanche Beats Snowball by the Most
|
|
18
|
+
- Large spread between the highest and lowest interest rates (e.g., 22% vs. 4%).
|
|
19
|
+
- Large balances on high-rate debts.
|
|
20
|
+
- User has strong discipline and doesn't need the motivational boost.
|
|
21
|
+
|
|
22
|
+
## When to Consider Snowball Instead
|
|
23
|
+
- Multiple small balances that can be cleared within 1–3 months.
|
|
24
|
+
- User has previously abandoned debt payoff plans.
|
|
25
|
+
- The interest rate difference between debts is small (<3%).
|
|
26
|
+
|
|
27
|
+
## Rollover Principle (Both Methods)
|
|
28
|
+
When a debt is paid off, add its former minimum payment to the payment for the next target debt. This "rollover" or "debt snowball roll" accelerates payoff without requiring extra income.
|
|
29
|
+
|
|
30
|
+
## Sources
|
|
31
|
+
- Amar, M., Ariely, D., Ayal, S., Cryder, C. E., & Rick, S. I. (2011). Winning the battle but losing the war: The psychology of debt management. *Journal of Marketing Research*.
|
|
32
|
+
- Ramsey, D. (2003). *The Total Money Makeover*. Thomas Nelson.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Interest Calculation Reference
|
|
2
|
+
|
|
3
|
+
## Monthly Interest on a Declining Balance
|
|
4
|
+
`Monthly Interest = Outstanding Balance × (Annual Rate / 12)`
|
|
5
|
+
|
|
6
|
+
This is simple monthly compounding, used by most consumer loans and credit cards in the US.
|
|
7
|
+
|
|
8
|
+
## Daily Periodic Rate (Some Credit Cards)
|
|
9
|
+
`Daily Rate = Annual Rate / 365`
|
|
10
|
+
`Monthly Interest = Average Daily Balance × Daily Rate × Days in Month`
|
|
11
|
+
|
|
12
|
+
When a card uses average daily balance, paying early in the cycle reduces the interest charge.
|
|
13
|
+
|
|
14
|
+
## Amortisation
|
|
15
|
+
For instalment loans (car, mortgage, personal), each payment is split between interest and principal:
|
|
16
|
+
- `Interest Portion = Remaining Balance × Monthly Rate`
|
|
17
|
+
- `Principal Portion = Monthly Payment − Interest Portion`
|
|
18
|
+
|
|
19
|
+
The minimum payment on an amortising loan is set to pay off the loan in exactly N months. Extra payments reduce principal directly and shorten the loan.
|
|
20
|
+
|
|
21
|
+
## APR vs. APY
|
|
22
|
+
- **APR (Annual Percentage Rate)**: The stated rate; does not account for compounding within the year.
|
|
23
|
+
- **APY (Annual Percentage Yield)**: The effective rate after intra-year compounding.
|
|
24
|
+
- For monthly compounding: `APY = (1 + APR/12)^12 − 1`
|
|
25
|
+
|
|
26
|
+
## Practical Note
|
|
27
|
+
The simulations in `calculate.py` use monthly compounding (APR/12 per month), consistent with US credit card and consumer loan disclosures.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Worked Example - debt-restructuring
|
|
2
|
+
|
|
3
|
+
## Ask
|
|
4
|
+
|
|
5
|
+
> Our company has $10M in debt and only $500k in annual EBITDA. We can't pay the interest. What are our options?
|
|
6
|
+
|
|
7
|
+
## What a correct response contains
|
|
8
|
+
|
|
9
|
+
Should identify a severe solvency crisis. Should suggest a 'Haircut' or a 'Debt-for-Equity Swap'. Should discuss recovery values in restructuring vs liquidation. Should provide a Restructuring Proposal structure.
|
|
10
|
+
|
|
11
|
+
## File-driven variant
|
|
12
|
+
|
|
13
|
+
With fixture(s) `evals/files/capital_structure.csv`:
|
|
14
|
+
|
|
15
|
+
> Run the priority waterfall in the attached capital structure (evals/files/capital_structure.csv) at the stated distributable enterprise value. Recovery $ and % per tranche, and identify the fulcrum security.
|
|
16
|
+
|
|
17
|
+
Expected: Senior secured 100% ($500m); senior unsecured 75% ($300m); subs 0%. Fulcrum = senior unsecured.
|
|
18
|
+
|
|
19
|
+
## Compute, don't estimate
|
|
20
|
+
|
|
21
|
+
All figures above come from [`scripts/calculate.py`](./scripts/calculate.py) - import its functions rather than doing arithmetic in prose.
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: debt-restructuring
|
|
3
|
+
description: When the user wants to reorganize an entity's outstanding obligations to restore solvency. Also use when the user mentions "insolvency," "Chapter 11 prep," "creditor negotiations," "debt-for-equity swap," "haircut calculations," or "renegotiating loans."
|
|
4
|
+
metadata:
|
|
5
|
+
version: 1.0.0
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Debt Restructuring
|
|
9
|
+
|
|
10
|
+
You are a Distressed Debt Specialist. Your goal is to design a plan that prevents liquidation by renegotiating terms with creditors to match the entity's actual cash flow capacity.
|
|
11
|
+
|
|
12
|
+
## Initial Assessment
|
|
13
|
+
|
|
14
|
+
1. **Solvency Context**
|
|
15
|
+
- What is the total debt load (Secured vs. Unsecured)?
|
|
16
|
+
- What are the current interest rates and maturity dates?
|
|
17
|
+
- What is the current "Interest Coverage Ratio"?
|
|
18
|
+
|
|
19
|
+
2. **Cash Flow Reality**
|
|
20
|
+
- What is the "Free Cash Flow to the Firm" (FCFF) available for debt service?
|
|
21
|
+
- How much cash is currently on the balance sheet?
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
## Restructuring Framework
|
|
26
|
+
|
|
27
|
+
### Priority Order
|
|
28
|
+
1. **Liquidity Preservation** (Stopping the bleeding).
|
|
29
|
+
2. **Capital Structure Analysis** (Identifying where the 'break' in the stack is).
|
|
30
|
+
3. **Restructuring Strategy** (Haircut, Extension, or Swap?).
|
|
31
|
+
4. **Creditor Negotiation Plan** (Incentivizing creditors to accept the deal).
|
|
32
|
+
|
|
33
|
+
---
|
|
34
|
+
|
|
35
|
+
## Technical Restructuring Steps
|
|
36
|
+
|
|
37
|
+
### 1. Haircut Calculation
|
|
38
|
+
- Determine the percentage reduction in principal required to make the debt sustainable based on projected cash flows.
|
|
39
|
+
|
|
40
|
+
### 2. Debt-for-Equity Swap
|
|
41
|
+
- Model the conversion of debt into equity, determining the ownership stake creditors would receive in exchange for forgiving debt.
|
|
42
|
+
|
|
43
|
+
### 3. Covenant Renegotiation
|
|
44
|
+
- Propose new, more flexible covenants (e.g., higher Debt/EBITDA limits) to avoid technical default during the recovery period.
|
|
45
|
+
|
|
46
|
+
---
|
|
47
|
+
|
|
48
|
+
## Output Format
|
|
49
|
+
|
|
50
|
+
### Restructuring Proposal Structure
|
|
51
|
+
|
|
52
|
+
**The Situation**
|
|
53
|
+
- Current Debt Waterfall.
|
|
54
|
+
- Proof of imminent default if no action is taken.
|
|
55
|
+
|
|
56
|
+
**The Proposal**
|
|
57
|
+
- Specific terms for each creditor class (e.g., "Senior lenders extend maturity by 24 months").
|
|
58
|
+
- Pro-forma Balance Sheet (Before vs. After).
|
|
59
|
+
|
|
60
|
+
**Creditor Incentive**
|
|
61
|
+
- Comparison of "Recovery in Restructuring" vs. "Recovery in Liquidation."
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
## Scripts
|
|
66
|
+
- [calculate.py](./scripts/calculate.py): Deterministic functions for this skill's core computations. Run `python3 scripts/calculate.py` to self-test; import the functions instead of doing mental math.
|
|
67
|
+
|
|
68
|
+
---
|
|
69
|
+
|
|
70
|
+
## References
|
|
71
|
+
- [Restructuring Strategies](./references/restructuring-types.md): Haircuts vs. Swaps.
|
|
72
|
+
- [Creditor Rights](./references/creditor-priority.md): Understanding the waterfall.
|
|
73
|
+
|
|
74
|
+
---
|
|
75
|
+
|
|
76
|
+
## Related Skills
|
|
77
|
+
- **risk-assessment**: For identifying the default risk before it happens.
|
|
78
|
+
- **financial-analysis**: For auditing the cash flow available for restructuring.
|
|
79
|
+
- **treasury-management**: For managing the immediate liquidity crisis.
|
package/selected-skills/financeskills/skills/debt-restructuring/references/creditor-priority.md
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Creditor Priority and the Waterfall
|
|
2
|
+
|
|
3
|
+
## Absolute Priority Order (typical)
|
|
4
|
+
1. Super-priority / DIP financing, admin expenses of the proceeding
|
|
5
|
+
2. Secured creditors — to the value of their collateral (deficiency claims drop to unsecured)
|
|
6
|
+
3. Priority unsecured (statutory: employees' wages, certain taxes — caps vary by jurisdiction)
|
|
7
|
+
4. Senior unsecured
|
|
8
|
+
5. Subordinated / mezzanine (per subordination agreements)
|
|
9
|
+
6. Preferred equity
|
|
10
|
+
7. Common equity
|
|
11
|
+
|
|
12
|
+
## Recovery Waterfall Mechanics
|
|
13
|
+
1. Establish distributable value (going-concern EV from restructuring valuation, or liquidation proceeds).
|
|
14
|
+
2. Allocate collateral value to each secured class (collateral-by-collateral; watch shared vs. exclusive liens).
|
|
15
|
+
3. Secured claim = min(claim, collateral value); excess claim joins unsecured pool pari passu.
|
|
16
|
+
4. Distribute remaining value down the ladder until exhausted — the class receiving partial recovery is the **fulcrum security** (it typically converts to equity and controls the negotiation).
|
|
17
|
+
|
|
18
|
+
## Worked Micro-Example
|
|
19
|
+
EV = 400. Secured claim 250 (collateral 300) → recovers 250 in full. Remaining 150 to senior unsecured claims of 200 → 75% recovery; fulcrum = senior unsecured. Sub debt and equity: zero.
|
|
20
|
+
|
|
21
|
+
## Complications
|
|
22
|
+
- **Structural subordination**: lenders at OpCo sit ahead of HoldCo creditors regardless of label — map the org chart and guarantees first.
|
|
23
|
+
- **Guarantee/upstream claims**: double-dip claims can recover from multiple estates.
|
|
24
|
+
- **Intercreditor agreements**: payment vs. lien subordination, standstill periods.
|
|
25
|
+
- **Cram-down**: junior classes get nothing until seniors are paid in full (absolute priority), subject to negotiated gifting.
|
|
26
|
+
- **Nigeria/Commonwealth**: employee claims and secured creditor enforcement rights per CAMA 2020 and applicable security interests (perfection status decides everything — verify registrations).
|
package/selected-skills/financeskills/skills/debt-restructuring/references/restructuring-types.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Debt Restructuring Types
|
|
2
|
+
|
|
3
|
+
## Out-of-Court (consensual)
|
|
4
|
+
| Type | Mechanics | When |
|
|
5
|
+
|---|---|---|
|
|
6
|
+
| Amend & extend | Push maturity, fee + margin bump | Liquidity timing issue, solvent business |
|
|
7
|
+
| Covenant waiver/reset | Temporary or permanent covenant relief | Technical breach, fundamentals intact |
|
|
8
|
+
| Forbearance | Lender agrees not to enforce for a period | Buys negotiation time post-default |
|
|
9
|
+
| Debt-for-debt exchange | New notes (longer/cheaper/junior-to-senior uptier) for old | Discounted capture, maturity wall |
|
|
10
|
+
| Debt-for-equity swap | Creditors take equity, debt extinguished | Over-levered but viable operations |
|
|
11
|
+
| New money + priming | Fresh capital senior to existing (uptiering/drop-down) | Liquidity crisis; expect lawsuits — check docs |
|
|
12
|
+
| Distressed buyback | Issuer repurchases debt below par | Cash-rich issuer, bonds trading low |
|
|
13
|
+
|
|
14
|
+
## In-Court
|
|
15
|
+
- **Chapter 11 (US)**: debtor-in-possession, automatic stay, plan needs one impaired accepting class + cram-down power; prepacks compress timeline to 1–3 months.
|
|
16
|
+
- **Scheme of arrangement (UK/Commonwealth)**: 75% by value per class binds holdouts; no automatic stay.
|
|
17
|
+
- **Nigeria**: CAMA 2020 introduces company voluntary arrangements and administration as rescue alternatives to receivership/winding-up; AMCON intervention for eligible bank debt.
|
|
18
|
+
|
|
19
|
+
## Accounting Consequences (debtor side)
|
|
20
|
+
- IFRS 9: terms "substantially different" (≥10% PV test or qualitative) → extinguish old, recognize new at FV, gain/loss to P&L. Otherwise modify: recompute carrying amount at original EIR, catch-up to P&L.
|
|
21
|
+
- TDR/concession analysis drives creditor-side impairment.
|
|
22
|
+
|
|
23
|
+
## Selection Logic
|
|
24
|
+
Liquidity problem → extend/waive. Solvency problem → haircut or equitize. Holdout risk high → court process. Always model the restructured entity's capital structure to a sustainable leverage (typically ≤ 3–4x) or the restructuring just recycles the problem.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Worked Example - deferred-tax
|
|
2
|
+
|
|
3
|
+
## Ask
|
|
4
|
+
|
|
5
|
+
> Equipment carrying amount 90M, tax written-down value 65M, tax rate 30%. What's the deferred tax and which side?
|
|
6
|
+
|
|
7
|
+
## What a correct response contains
|
|
8
|
+
|
|
9
|
+
Taxable temporary difference 25M (carrying exceeds tax base on an asset) -> deferred tax LIABILITY of 7.5M.
|
|
10
|
+
|
|
11
|
+
## File-driven variant
|
|
12
|
+
|
|
13
|
+
With fixture(s) `evals/files/temporary_differences.csv`:
|
|
14
|
+
|
|
15
|
+
> Tax rate 30%. For each temporary difference in the attached file (evals/files/temporary_differences.csv), classify it as taxable or deductible, compute the DTL/DTA, and note that the warranty provision is a LIABILITY (carrying 250,000, tax base nil) and the revaluation difference goes through OCI.
|
|
16
|
+
|
|
17
|
+
Expected: PP&E: taxable TD 300,000 -> DTL $90,000. Warranty: deductible TD 250,000 -> DTA $75,000. Revaluation: taxable TD 200,000 -> DTL $60,000 recognized in OCI.
|
|
18
|
+
|
|
19
|
+
## Compute, don't estimate
|
|
20
|
+
|
|
21
|
+
All figures above come from [`scripts/calculate.py`](./scripts/calculate.py) - import its functions rather than doing arithmetic in prose.
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: deferred-tax
|
|
3
|
+
description: When the user wants to compute or review deferred tax under IAS 12 or ASC 740. Also use when the user mentions "temporary differences," "deferred tax asset," "DTA recognition," "tax base," "effective tax rate reconciliation," "valuation allowance," "tax provision," or "unused tax losses."
|
|
4
|
+
metadata:
|
|
5
|
+
version: 1.0.0
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Deferred Tax (IAS 12 / ASC 740)
|
|
9
|
+
|
|
10
|
+
You are a Tax Accounting Specialist. Your goal is to compute the deferred tax position from temporary differences, assess DTA recoverability, and explain the effective tax rate.
|
|
11
|
+
|
|
12
|
+
## Initial Assessment
|
|
13
|
+
|
|
14
|
+
1. **Inputs**
|
|
15
|
+
- Balance sheet with carrying amounts; tax bases per tax computation/fixed asset tax register.
|
|
16
|
+
- Enacted (or substantively enacted) tax rates expected to apply when differences reverse.
|
|
17
|
+
- Unused tax losses and credits, with expiry profile and local utilization rules.
|
|
18
|
+
|
|
19
|
+
2. **Jurisdiction Rules**
|
|
20
|
+
- Loss carryforward limits (e.g., Nigeria: indefinite carryforward for most companies; check minimum tax interplay), capital allowance regimes vs. book depreciation, non-deductibles.
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
## Computation Framework
|
|
25
|
+
|
|
26
|
+
### The Balance Sheet Approach
|
|
27
|
+
For every asset/liability: `Temporary difference = Carrying amount − Tax base`
|
|
28
|
+
- Asset carrying > tax base → **taxable** TD → deferred tax LIABILITY.
|
|
29
|
+
- Asset carrying < tax base → **deductible** TD → deferred tax ASSET.
|
|
30
|
+
- Liabilities mirror (provision with nil tax base → DTA).
|
|
31
|
+
|
|
32
|
+
### Classic Sources
|
|
33
|
+
| Item | Direction (typical) |
|
|
34
|
+
|---|---|
|
|
35
|
+
| Accelerated capital allowances vs. book depreciation | DTL |
|
|
36
|
+
| Provisions deductible when paid (gratuity, leave, ECL for non-banks) | DTA |
|
|
37
|
+
| Revaluation surplus (book up, tax base unchanged) | DTL (through OCI) |
|
|
38
|
+
| Unused tax losses | DTA (recognition test!) |
|
|
39
|
+
| ROU asset / lease liability (net approach by jurisdiction) | Net DTA usually |
|
|
40
|
+
| Unrealized intragroup profits | DTA at BUYER's rate |
|
|
41
|
+
|
|
42
|
+
### Exceptions (no deferred tax)
|
|
43
|
+
Initial recognition exemption (asset/liability in a non-business-combination transaction affecting neither book nor tax profit — narrowed for leases/AROs by 2021 amendment: gross DTA and DTL required), goodwill initial recognition, investments in subs where reversal is controlled and not probable.
|
|
44
|
+
|
|
45
|
+
### DTA Recognition Test
|
|
46
|
+
Recognize only to the extent future taxable profit is PROBABLE: reversal of existing DTLs (same jurisdiction/period) → forecasts (the more recent the losses, the stronger the evidence needed — "convincing other evidence" after recent losses) → tax planning opportunities. US GAAP: recognize fully, then valuation allowance under more-likely-than-not.
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
## Technical Analysis Steps
|
|
51
|
+
|
|
52
|
+
1. **Build the TD schedule with code**: item, carrying, tax base, TD, rate, DTA/DTL, movement split P&L / OCI / equity.
|
|
53
|
+
2. **Prove the ETR reconciliation**: statutory rate → non-deductibles, exempt income, unrecognized DTAs, rate changes, prior-year true-ups → effective rate. Unexplained residual > 0.5% = error hunt.
|
|
54
|
+
3. **Rate change handling**: remeasure ALL deferred balances at the new enacted rate; backward trace to where the original TD was booked (P&L vs OCI).
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
## Output Format
|
|
59
|
+
|
|
60
|
+
### Deferred Tax Schedule & Memo
|
|
61
|
+
|
|
62
|
+
**TD Schedule**: per-item table with carrying amount, tax base, TD, rate, closing DTA/DTL, movement analysis.
|
|
63
|
+
|
|
64
|
+
**DTA Recognition Memo**: evidence assessment for loss DTAs.
|
|
65
|
+
|
|
66
|
+
**ETR Reconciliation**: statutory-to-effective bridge.
|
|
67
|
+
|
|
68
|
+
**Entries**: Dr/Cr split across P&L, OCI, equity.
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
72
|
+
## Scripts
|
|
73
|
+
- [calculate.py](./scripts/calculate.py): Deterministic functions for this skill's core computations. Run `python3 scripts/calculate.py` to self-test; import the functions instead of doing mental math.
|
|
74
|
+
|
|
75
|
+
---
|
|
76
|
+
|
|
77
|
+
## References
|
|
78
|
+
- [Temporary Difference Catalogue](./references/td-catalogue.md): Worked examples of the common differences and the ETR bridge.
|
|
79
|
+
|
|
80
|
+
---
|
|
81
|
+
|
|
82
|
+
## Related Skills
|
|
83
|
+
- **tax-planning**: For the planning that creates or uses these positions.
|
|
84
|
+
- **fixed-asset-accounting**: Capital allowances vs. depreciation is usually the biggest TD.
|
|
85
|
+
- **corporate-consolidation**: Consolidation adjustments carry their own deferred tax.
|
|
86
|
+
- **statement-preparation**: Presentation and disclosure of the tax line.
|