VP21 commited on
Commit
ad5cc7b
·
verified ·
1 Parent(s): a3bcaa0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -35,7 +35,10 @@ def calculate_bandwidth(users: int, usage: Dict[str, int]) -> float:
35
 
36
  total_bandwidth = sum(usage_requirements[activity] * usage.get(activity, 0) for activity in usage_requirements)
37
  overhead = 1.2 # 20% overhead for seamless experience
38
- return round(total_bandwidth * overhead, 2)
 
 
 
39
 
40
 
41
  final_answer = FinalAnswerTool()
 
35
 
36
  total_bandwidth = sum(usage_requirements[activity] * usage.get(activity, 0) for activity in usage_requirements)
37
  overhead = 1.2 # 20% overhead for seamless experience
38
+ # Apply overhead of 1.2
39
+ total_bandwidth_with_overhead = total_bandwidth * overhead
40
+
41
+ return round(total_bandwidth_with_overhead, 2)
42
 
43
 
44
  final_answer = FinalAnswerTool()