Spaces:
Sleeping
Sleeping
Commit
·
685c6e6
1
Parent(s):
1bee728
new monthly savings
Browse files
app.py
CHANGED
@@ -91,7 +91,9 @@ def financial_analysis(consumption: float, production: float, storage: float) ->
|
|
91 |
grid_offset = min(grid_purchased, storage)
|
92 |
grid_purchased -= grid_offset
|
93 |
|
94 |
-
monthly_savings = (
|
|
|
|
|
95 |
|
96 |
total_investment = (
|
97 |
st.session_state.solar_panels * st.session_state.panel_price
|
|
|
91 |
grid_offset = min(grid_purchased, storage)
|
92 |
grid_purchased -= grid_offset
|
93 |
|
94 |
+
monthly_savings = (
|
95 |
+
consumption - (common_area_consumption * 30) * st.session_state.grid_price / 100
|
96 |
+
)
|
97 |
|
98 |
total_investment = (
|
99 |
st.session_state.solar_panels * st.session_state.panel_price
|