multi-vector-simulator
multi-vector-simulator copied to clipboard
Module C2 still missing present value of fuel price with annual price change
`def fuel_price_present_value(economics,): """ Calculates the present value of the fuel price over the lifetime of the project, taking into consideration the annual price change
:param economics: dict with fuel data values
:return: present value of the fuel price over the lifetime of the project
"""
cash_flow_fuel_l = 0
fuel_price_i = economics["fuel_price"]
# todo check this calculation again!
if economics["fuel_price_change_annual"] == 0:
economics.update({"price_fuel": fuel_price_i})
else:
for i in range(0, economics["project_lifetime"]):
cash_flow_fuel_l += fuel_price_i / (1 + economics["wacc"]) ** (i)
fuel_price_i = fuel_price_i * (1 + economics["fuel_price_change_annual"])
economics.update({"price_fuel": cash_flow_fuel_l * economics["crf"]})`
From E-Land meeting: suggestion for the user to be able to provide fuel price for each year as csv file