for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
# %%[func_lcoh_start]
def LCOH(invest_cost, operation_cost, heat_produced, revenue=0, i=0.05, n=20):
pvf = ((1 + i) ** n - 1) / ((1 + i) ** n * i)
return (invest_cost + pvf * (operation_cost - revenue)) / (
pvf * heat_produced
)
# %%[func_lcoh_end]
# %%[func_epc_start]
def epc(invest_cost, i=0.05, n=20):
af = (i * (1 + i) ** n) / ((1 + i) ** n - 1)
return invest_cost * af
# %%[func_epc_end]