Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
|
|
|
|
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 |
+
|