Spaces:
Sleeping
Sleeping
Commit
·
1bee728
1
Parent(s):
37bd9f1
new monthly savings
Browse files
app.py
CHANGED
@@ -91,7 +91,7 @@ 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 = consumption * st.session_state.grid_price / 100
|
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 = (consumption-(common_area_consumption *30)* st.session_state.grid_price / 100
|
95 |
|
96 |
total_investment = (
|
97 |
st.session_state.solar_panels * st.session_state.panel_price
|