multi-vector-simulator icon indicating copy to clipboard operation
multi-vector-simulator copied to clipboard

Module C2 still missing present value of fuel price with annual price change

Open ursulaelmir opened this issue 5 years ago • 1 comments

`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"]})`

ursulaelmir avatar Apr 28 '20 08:04 ursulaelmir

From E-Land meeting: suggestion for the user to be able to provide fuel price for each year as csv file

Bachibouzouk avatar Jul 09 '20 15:07 Bachibouzouk