Skip to content

Commit

Permalink
Add non-discounted initial capital costs
Browse files Browse the repository at this point in the history
  • Loading branch information
Bill-Becker committed Nov 21, 2024
1 parent 1127d0e commit f90c464
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/results/proforma.jl
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ return Dict(
"offtaker_discounted_annual_free_cashflows_bau" => Float64[],
"developer_annual_free_cashflows" => Float64[],
"initial_capital_costs_after_incentives_without_macrs" => 0.0 # Initial capital costs after ibi, cbi, and ITC incentives
"initial_capital_costs_after_incentives_no_discounting" => 0.0 # Initial capital costs after ibi, cbi, ITC, and MACRS incentives but without discounting out-year ITC and MACRS
)
"""
function proforma_results(p::REoptInputs, d::Dict)
Expand All @@ -47,7 +48,8 @@ function proforma_results(p::REoptInputs, d::Dict)
"offtaker_discounted_annual_free_cashflows" => Float64[],
"offtaker_discounted_annual_free_cashflows_bau" => Float64[],
"developer_annual_free_cashflows" => Float64[],
"initial_capital_costs_after_incentives_without_macrs" => 0.0
"initial_capital_costs_after_incentives_without_macrs" => 0.0,
"initial_capital_costs_after_incentives_no_discounting" => 0.0
)
years = p.s.financial.analysis_years
escalate_elec(val) = [-1 * val * (1 + p.s.financial.elec_cost_escalation_rate_fraction)^yr for yr in 1:years]
Expand Down Expand Up @@ -251,6 +253,7 @@ function proforma_results(p::REoptInputs, d::Dict)
free_cashflow_without_year_zero = m.total_depreciation * tax_rate_fraction + total_cash_incentives + operating_expenses_after_tax
free_cashflow_without_year_zero[1] += m.federal_itc
r["initial_capital_costs_after_incentives_without_macrs"] = d["Financial"]["initial_capital_costs"] - m.total_ibi_and_cbi - m.federal_itc
r["initial_capital_costs_after_incentives_no_discounting"] = r["initial_capital_costs_after_incentives_without_macrs"] - sum(m.total_depreciation * tax_rate_fraction)
free_cashflow = append!([(-1 * d["Financial"]["initial_capital_costs"]) + m.total_ibi_and_cbi], free_cashflow_without_year_zero)

# At this point the logic branches based on third-party ownership or not - see comments
Expand Down

0 comments on commit f90c464

Please sign in to comment.