erlang c monthly fomrula calculation
- User
erlang c monthly fomrula calculation
- Assistant
The Erlang C formula is used to calculate the probability that a customer will have to wait for service in a call center.
The formula is as follows:
E = (A^N / N!) / ((A^N / N!) + ∑(i=0 to N-1) (A^i / i!))
Where:
- E is the probability that a customer has to wait for service
- A is the arrival rate of calls per time period
- N is the number of agents available to handle calls
To calculate the monthly Erlang C value, you would need to know the monthly arrival rate of calls, denoted as A, and the number of agents available throughout the month, denoted as N.
Once you have these values, you can plug them into the Erlang C formula to calculate the monthly probability that a customer will have to wait for service.
- User
erlangc formula monthly in vba code
- Assistant
Sure! Here's an example of how you can calculate the monthly Erlang C value using VBA code:
Function MonthlyErlangC(arrivalRate As Double, numAgents As Integer) As Double Dim numerator As Double Dim denominator As Double numerator = (Application.WorksheetFunction.Power(arrivalRate, numAgents) / Application.WorksheetFunction.Fact(numAgents)) denominator = numerator For i = 0 To numAgents - 1 denominator = denominator + (Application.WorksheetFunction.Power(arrivalRate, i) / Application.WorksheetFunction.Fact(i)) Next i MonthlyErlangC = numerator / denominator End Function Sub TestErlangC() Dim arrivalRate As Double Dim numAgents As Integer 'Input values for arrival rate and number of agents arrivalRate = 100 'Example arrival rate of 100 calls per hour numAgents = 5 'Example number of 5 agents 'Calculate monthly Erlang C value Dim monthlyErlangC As Double monthlyErlangC = MonthlyErlangC(arrivalRate, numAgents) 'Display the result MsgBox "Monthly Erlang C value: " & monthlyErlangC End Sub