Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -194,6 +194,13 @@ def get_array_CF_PV():
|
|
194 |
return array_CF, array_PV
|
195 |
|
196 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
197 |
def get_id_first_positive_NPV(array_NPV):
|
198 |
for idx, npv in enumerate(array_NPV):
|
199 |
if npv > 0:
|
|
|
194 |
return array_CF, array_PV
|
195 |
|
196 |
|
197 |
+
def get_array_NPV():
|
198 |
+
array_NPV = [array_PV[0]]
|
199 |
+
for idx in range(1, Number_of_months + 1, 1):
|
200 |
+
array_NPV.append(array_NPV[-1] + array_PV[idx])
|
201 |
+
return array_NPV
|
202 |
+
|
203 |
+
|
204 |
def get_id_first_positive_NPV(array_NPV):
|
205 |
for idx, npv in enumerate(array_NPV):
|
206 |
if npv > 0:
|