charagu-eric commited on
Commit
c0632d6
·
1 Parent(s): c637878

returned st

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -103,7 +103,9 @@ def financial_analysis(
103
  grid_offset = min(grid_purchased, storage)
104
  grid_purchased -= grid_offset
105
  # Money paid to owner if client used this instead o
106
- monthly_savings = consumption * st.session_state.grid_price / 100
 
 
107
 
108
  total_investment = (
109
  st.session_state.solar_panels * st.session_state.panel_price
 
103
  grid_offset = min(grid_purchased, storage)
104
  grid_purchased -= grid_offset
105
  # Money paid to owner if client used this instead o
106
+ monthly_savings = (
107
+ consumption - (common_area_consumption * 30) * st.session_state.grid_price / 100
108
+ )
109
 
110
  total_investment = (
111
  st.session_state.solar_panels * st.session_state.panel_price