charagu-eric commited on
Commit
4828d96
·
1 Parent(s): cb3cb82

actual common area consumption

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -39,7 +39,7 @@ def calculate_lighting_consumption(occupancy_1br: float, occupancy_2br: float) -
39
  return (
40
  (occupancy_1br * ONE_BR_UNITS * LIGHTS_1BR * LIGHT_POWER / 1000)
41
  + (occupancy_2br * TWO_BR_UNITS * LIGHTS_2BR * LIGHT_POWER / 1000)
42
- ) * 6 # 6 hours per day
43
 
44
 
45
  def total_consumption(
@@ -233,7 +233,7 @@ def main():
233
  scenarios = {}
234
 
235
  # Common area consumption remains constant
236
- common_area_consumption = 5.904 # kWh per day
237
 
238
  # Generate scenarios with different occupancy combinations
239
  occupancy_levels = [0.0, 0.25, 0.50, 0.75, 1.0]
@@ -487,7 +487,7 @@ def main():
487
 
488
  **Savings Calculation:**
489
  - Grid Price: {st.session_state.grid_price} Ksh/kWh
490
- - Monthly Savings = (Total Consumption × Grid Price) - (Grid Purchased × Grid Price)
491
  - Payback Period = Total Investment / Annual Savings
492
 
493
  **Filtered Scenario Data:**
 
39
  return (
40
  (occupancy_1br * ONE_BR_UNITS * LIGHTS_1BR * LIGHT_POWER / 1000)
41
  + (occupancy_2br * TWO_BR_UNITS * LIGHTS_2BR * LIGHT_POWER / 1000)
42
+ ) * 12 # 12 hours per day
43
 
44
 
45
  def total_consumption(
 
233
  scenarios = {}
234
 
235
  # Common area consumption remains constant
236
+ common_area_consumption = (1782 + 180 + 12) / 1000 # kWh per day
237
 
238
  # Generate scenarios with different occupancy combinations
239
  occupancy_levels = [0.0, 0.25, 0.50, 0.75, 1.0]
 
487
 
488
  **Savings Calculation:**
489
  - Grid Price: {st.session_state.grid_price} Ksh/kWh
490
+ - Monthly Savings = (Total Consumption - Common Areas× Grid Price)
491
  - Payback Period = Total Investment / Annual Savings
492
 
493
  **Filtered Scenario Data:**