The ERLANGB function calculates the probability that a request will be blocked given a specified number of servers, the arrival rate of requests, and the average time to service a request.
This function assumes the Erlang loss system, in which no queue exists and requests that can't be handled immediately are blocked rather than queued.
For example, you can use the ERLANGB function to estimate the probability that an incoming call to a call center is blocked because all agents are busy.
Syntax
ERLANGB(Number of servers, Arrival rate, Average duration)
Arguments
| Argument | Data type | Description |
| Number of servers | Number | The number of servers (for example, call center agents) available to process requests. |
| Arrival rate | Number | The number of incoming requests received per unit of time. |
| Average duration | Number | The average amount of time it takes to process each request. |
The ERLANGB function returns a number that represents the probability that a request is blocked.
Calculation engine functionality differences
| Behavior | Classic | Polaris |
| Rounding of the number of agents | Truncates the number of agents by rounding it toward 0. For example, 1.5 becomes 1 and -1.5 becomes -1. | Rounds the number of agents to the nearest integer, with halves rounded away from 0. For example, 1.5 becomes 2 and -1.5 becomes -2. |
| When Arrival rate is 0 | Returns NaN if Number of servers is a negative value and 0 otherwise. | Returns 0 regardless of the value of Number of servers. |
| When Average duration is 0 | Always returns NaN. | Always returns 0. |
Additional information
How Erlang B is calculated
ERLANGB is defined by this formula:
where:
- m is the Number of servers
- λ is the Arrival rate
- μ is the Average duration
- α is the offered load, equal to λ × μ
Constraints
Time unit for arguments
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.
Maximum number of servers
The maximum number you can use for the Number of servers argument is five million.
Examples
In this example, the Call Centers list is on columns, and line items on rows. The first three line items contain the scheduled number of servers, arrival rate of requests, and average time to service a request. The fourth line item, Busy Probability, calculates the probability of a call being blocked using the ERLANGB formula.
The final two line items are a numeric line item, Extra Servers, to adjust the number of servers, and a formula that displays the busy probability after adjustment.
The example shows how the number of agents can be adjusted until the desired busy probability is reached (in this case, less than 5%). In practice, AGENTSB can be used to automatically calculate the minimum number of agents required to meet a target SLA.
Both of the line items that contain formulas use the Percentage format with two decimal places to display the probability as a percentage.
The arrival rate and average duration must use the same compatible units. In this example, the arrival rate is measured in requests per minute and the average duration is measured in minutes, so their product (the offered load) is dimensionless.
| Call Center 1 | Call Center 2 | Call Center 3 | Call Center 4 | |
| Scheduled Number of Servers | 25 | 45 | 50 | 39 |
| Request Arrival Rate | 0.76 | 0.93 | 1.4 | 1.2 |
| Average Duration | 25 | 55 | 45 | 66 |
Busy Probability
| 3.63% | 18.6% | 24.7% | 51.88% |
| Extra Servers | -1 | 12 | 19 | 46 |
Amended Busy Probability
| 4.95% | 4.69% | 4.57% | 4.60% |