contact-center-math

Contact-center formulas you can test

Erlang C staffing, service level, occupancy, AHT, first contact resolution, CSAT, NPS and cost per ticket as small, pure TypeScript functions. Zero dependencies, fully typed, and covered by unit tests. Erlang C is checked against the textbook closed form and published tables.

npm install github:andrewhall07/contact-center-math
import { solveStaffing } from 'contact-center-math/erlang-c'

solveStaffing({ contacts: 100, intervalSec: 1800, ahtSec: 180, targetSL: 0.8, targetSec: 20 })
// → { agents: 14, serviceLevel: 0.888, asaSec: 7.84, occupancy: 0.714, … }

Modules

Why another Erlang C implementation?

Prefer a calculator?

If you'd rather not write code, the Resolution-to-Cost Index calculators run the same formulas in the browser, with staffing tables and charts.