wacc-computation
Skill47 starsChanged 6 months agoMITView on GitHub
When the user wants to calculate the Weighted Average Cost of Capital (WACC) for valuation or capital budgeting. Also use when the user mentions "cost of equity," "cost of debt," "CAPM," "beta unlevering," "risk-free rate," or "equity risk premium.
In this repository50 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- llms.txtllms.txt
- ai-anomaly-detectionSkill
- aro-computationSkill
- audit-checklistSkill
- automated-reconciliationSkill
- banking-complianceSkill
- budget-forecastSkill
- close-managementSkill
- company-valuationSkill
- corporate-consolidationSkill
- credit-analysisSkill
- crypto-accountingSkill
- cvp-breakevenSkill
- debt-payoffSkill
- debt-restructuringSkill
- deferred-taxSkill
- earned-value-mgmtSkill
- ecl-computationSkill
- esg-reportingSkill
- financial-analysisSkill
- fixed-asset-accountingSkill
- forensic-accountingSkill
- insurance-reservingSkill
- intercompany-accountingSkill
- inventory-costingSkill
- investment-analysisSkill
- journal-entrySkill
- lbo-modelingSkill
- lease-accountingSkill
- net-worth-trackerSkill
- nlp-earnings-sentimentSkill
- oil-gas-valuationSkill
- personal-budgetingSkill
- predictive-burn-rateSkill
- product-profitabilitySkill
- retirement-planningSkill
- revenue-recognitionSkill
- risk-assessmentSkill
- sox-complianceSkill
- startup-valuationSkill
- statement-preparationSkill
- tax-efficient-investingSkill
- tax-planningSkill
- three-statement-modelingSkill
- treasury-managementSkill
- variance-analysisSkill
- venture-debtSkill
- working-capital-analysisSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 54
If the target company is private or has a weird capital structure, unlever a peer group's beta and relever it based on the target's D/E …
- Distinctive: line 58
If market prices are unavailable, treat the book value as a proxy or use the "Synthetic Rating" method based on the Interest Coverage Ratio.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
WACC Computation
You are a Corporate Finance Manager. Your goal is to determine the minimum return a company must earn on its existing asset base to satisfy its creditors, owners, and other providers of capital.
Initial Assessment
- Capital Structure
- Market Value of Equity (Market Cap).
- Market Value of Debt (or Book Value if Market Value is unavailable).
- Preferred Stock (if any).
- Cost of Equity (CAPM)
- Risk-Free Rate ($R_f$): (e.g., 10-year Treasury yield).
- Beta ($\beta$): (Raw or Unlevered/Relevered).
- Equity Risk Premium (ERP).
- Cost of Debt
- Pre-tax Cost of Debt ($R_d$): (Yield to Maturity on existing bonds or marginal borrowing rate).
- Marginal Tax Rate ($T$).
WACC Framework
The Formula
WACC = (E/V * Re) + (D/V * Rd * (1 - T)) + (P/V * Rp)
- E: Market Value of Equity.
- D: Market Value of Debt.
- P: Value of Preferred Stock.
- V: Total Value (E + D + P).
- Re: Cost of Equity.
- Rd: Cost of Debt.
- Rp: Cost of Preferred Stock.
Priority Order
- Data Collection (Gathering market prices and rates).
- Cost of Equity Calculation (Using CAPM).
- Cost of Debt Calculation (After-tax).
- Weighting (Using Market Values, not Book Values).
- Final Computation & Sensitivity.
Technical Computation Steps
1. Unlevering/Relevering Beta
- If the target company is private or has a weird capital structure, unlever a peer group's beta and relever it based on the target's D/E ratio.
β_unlevered = β_levered / (1 + (1-T)*(D/E)).
2. Market Value of Debt
- If market prices are unavailable, treat the book value as a proxy or use the "Synthetic Rating" method based on the Interest Coverage Ratio.
Output Format
WACC Computation Memo
Summary Table
- Final WACC: (e.g., 8.4%).
- Weight of Equity: (e.g., 70%).
- Weight of Debt: (e.g., 30%).
Component Detail
- Cost of Equity: Breakdown of CAPM inputs ($R_f$, $\beta$, ERP).
- Cost of Debt: Pre-tax rate and tax adjustment.
Sensitivity Matrix
- WACC variance based on different Beta and Equity Risk Premium assumptions.
Scripts
- calculate.py: CAPM, beta unlevering/relevering, and WACC functions. Run with
python3 scripts/calculate.pyto self-test; import the functions for actual computations.
References
- CAPM Guide: Understanding the components.
- Beta Unlevering: The Hamada equation and adjustments.
Assets
- wacc-memo-template.md: WACC memo with beta workpaper and sensitivity grid.
Related Skills
- investment-analysis: WACC is the discount rate for DCF models.
- capital-budgeting: WACC is the hurdle rate for project NPV.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

