TovaHasi commited on
Commit
eddefd4
1 Parent(s): 9c24e16

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -0
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: