# Example 1: Not Busy
# 10 registered, 2 waiting
# Score = 33.3 * (0.11 + 0.14 + 0.4) = 33.3 * 0.65 = ~22 (Busy)
pedocs_score(10, 2)
# Example 2: Overcrowded
# 50 registered, 20 waiting
# Score = 33.3 * (0.11 + 1.4 + 2.0) = 33.3 * 3.51 = ~117 (Overcrowded)
pedocs_score(50, 20)
Run the code above in your browser using DataLab