jeronimo9 commited on
Commit
17019a6
·
verified ·
1 Parent(s): b9732d3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -305,12 +305,12 @@ def calculate_roi(inputs):
305
  total_hours_saved = num_employees * hours_saved_per_week * 52
306
  labor_cost_savings = total_hours_saved * hourly_wage
307
 
308
- # Compliance savings
309
  compliance_savings = sum(
310
- row["Expected Violations"] * (row["Penalty"] + row["Attorney Cost"])
311
  for _, row in compliance_data.iterrows()
312
  )
313
-
314
  # Total benefits
315
  total_benefits = labor_cost_savings + revenue_increase + compliance_savings
316
 
 
305
  total_hours_saved = num_employees * hours_saved_per_week * 52
306
  labor_cost_savings = total_hours_saved * hourly_wage
307
 
308
+ # Compliance savings - ensure numeric types
309
  compliance_savings = sum(
310
+ float(row["Expected Violations"]) * (float(row["Penalty"]) + float(row["Attorney Cost"]))
311
  for _, row in compliance_data.iterrows()
312
  )
313
+
314
  # Total benefits
315
  total_benefits = labor_cost_savings + revenue_increase + compliance_savings
316