From b9252b733921a3ea26828ae8c2711495d7d6f9d4 Mon Sep 17 00:00:00 2001 From: jdebacker Date: Wed, 10 Apr 2024 19:26:43 -0400 Subject: [PATCH] add arg to coc to allow some variation by asset type --- ccc/calcfunctions.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ccc/calcfunctions.py b/ccc/calcfunctions.py index ec9fdb4c..902c4f61 100644 --- a/ccc/calcfunctions.py +++ b/ccc/calcfunctions.py @@ -222,7 +222,7 @@ def npv_tax_depr(df, r, pi, land_expensing): return z -def eq_coc(delta, z, w, u, u_d, inv_tax_credit, psi, nu, pi, r): +def eq_coc(delta, z, w, u, u_d, inv_tax_credit, psi, nu, pi, r, asset_type="None"): r""" Compute the cost of capital @@ -243,6 +243,7 @@ def eq_coc(delta, z, w, u, u_d, inv_tax_credit, psi, nu, pi, r): nu (scalar): NPV of the investment tax credit pi (scalar): inflation rate r (scalar): discount rate + asset_type (str): type of asset (used to trigger RE credit) Returns: rho (array_like): the cost of capital