TovaHasi commited on
Commit
60c8857
1 Parent(s): 11a7386

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -231,7 +231,9 @@ def get_array_CF_PV():
231
  elif genre == 'Покупка механизированного ричтрака':
232
  sale_price_mashine = 0.7*(I_0 - np.sum(array_amortization)) / array_discounting[-1]
233
 
234
- return array_CF, array_PV, sale_price_mashine
 
 
235
 
236
 
237
  def get_array_NPV():
@@ -279,4 +281,5 @@ if st.button('Расчет эффективности'):
279
  chart_data['PV'] = array_PV
280
  chart_data['NPV'] = array_NPV
281
 
282
- st.bar_chart(chart_data)
 
 
231
  elif genre == 'Покупка механизированного ричтрака':
232
  sale_price_mashine = 0.7*(I_0 - np.sum(array_amortization)) / array_discounting[-1]
233
 
234
+ array_PV.append(sale_price_mashine * array_discounting[-1])
235
+
236
+ return array_CF, array_PV
237
 
238
 
239
  def get_array_NPV():
 
281
  chart_data['PV'] = array_PV
282
  chart_data['NPV'] = array_NPV
283
 
284
+ st.bar_chart(chart_data)
285
+