That is a problem with hard-coded algorithms.
The AI, having millions of parameter slots available, can incorporate the number of people in rooms. It might assign separate parameters to a series of number levels - 10, 20, 50, 100, 500, etc. more parameters to how quickly those levels were...