The AGENTS function calculates the minimum ‌number of servers (or agents) needed to achieve a desired Service Level.

This function assumes the Erlang delay system, in which an unlimited queue is available and requests that can't be handled immediately wait until a server becomes available.

For example, you can use the AGENTS function to calculate the number of servers needed at peak times to maintain a certain speed of response.

AGENTS(SLA, Target response time, Arrival rate, Average duration)

ArgumentData typeDescription
SLANumberThe percentage of requests that need to be processed within the Target response time.
Target response timeNumberThe maximum amount of time before each request starts to be processed. 
Arrival rateNumberThe number of incoming requests received per unit of time.
Average durationNumberThe average amount of time it takes to process each request.

The AGENTS function returns a number that represents the number of servers, or agents, required to process requests within the SLA.

BehaviorClassicPolaris
When SLA is 0Returns the smallest integer above the offered load, where the offered load is equal to Arrival rate × Average duration.Returns 0.
When Average duration is 0Returns NaN.Returns 0. This is consistent with the behavior when Arrival rate is 0, where both engines return 0.

The offered load must be dimensionless. This means the Arrival rate must be expressed per unit of time corresponding to the unit used for Average duration.

For example:

  • If Average duration is measured in minutes, Arrival rate must be measured in requests per minute.
  • If Average duration is measured in seconds, Arrival rate must be measured in requests per second.

In this example, the Call Centers list is on columns, and line items on rows. The first four line items contain the the percentage of calls that must be responded to within the target response time (uses the percentage number Format).

The Servers to meet SLA line item uses the AGENTS function to calculate how many agents are needed to service the percentage of requests specified in the SLA within the target response time.

The Amended Target Response Time line item enables you to change the target response time. This is used in the Updated Servers with amendment line item, which calculates how many agents are needed to respond to requests within the amended response time while maintaining a given SLA.


Call Center 1Call Center 2Call Center 3Call Center 4
Service Level Agreement85%87%92%85%
Target Response Time15181712
Request Arrival Rate0.76840.93581.4261.219
Average Duration18.6723.2524.8717.39

Servers to meet SLA

AGENTS(Service Level Agreement, Target Response Time, Request Arrival Rate, Average Duration)

17243924
Amended Target Response Time10101010

Updated Servers with amendment

AGENTS(Service Level Agreement, Amended Target Response Time, Request Arrival Rate, Average Duration)

17254024