| name | cash-flow-forecast |
| description | 现金流预测工具,分解经营/投资/筹资现金流,基于销售百分比法构建多期自由现金流预测与DCF估值。适用于企业财务教学、现金流建模学习与DCF估值原理演示;采用线性增长假设且未覆盖情景分析/敏感性/宏观周期,不适用于正式财务预测、投资决策或企业估值实务。 |
| version | 1.0.0 |
| author | wangyi |
cash-flow-forecast
现金流预测工具,分解经营、投资、筹资现金流,计算自由现金流,构建多期现金流预测模型。
📌 说明:本工具基于简化模型实现,仅使用 Python 标准库。结果仅供学习参考,不构成投资建议或交易依据。
脚本API
fcff(ebit, tax_rate, depreciation, capex, nwc_change)
计算企业自由现金流(FCFF)。
必填: ebit, tax_rate, depreciation, capex, nwc_change
fcfe(fcff_val, interest, tax_rate, net_borrowing)
计算股权自由现金流(FCFE)。
必填: fcff_val, interest, tax_rate, net_borrowing
forecast_cash_flows(base_revenue, revenue_growth, ebit_margin, tax_rate, da_rate, capex_rate, nwc_rate, years)
多期现金流预测(销售百分比法)。
必填: base_revenue, revenue_growth, ebit_margin, tax_rate, da_rate, capex_rate, nwc_rate, years
terminal_value(last_fcff, terminal_growth, wacc)
计算终值(Gordon增长模型)。
必填: last_fcff, terminal_growth, wacc
dcf_valuation(forecasts, terminal_growth, wacc)
DCF估值(现金流折现)。
必填: forecasts, terminal_growth, wacc
调用示例
python scripts/main.py \
--base-revenue <base_revenue> \
--revenue-growth <revenue_growth> \
--ebit-margin <ebit_margin> \
--tax-rate <tax_rate> \
--da-rate <da_rate> \
--capex-rate <capex_rate> \
--nwc-rate <nwc_rate> \
--years <years>