Thomas Eapen · Selected work

Make the interval calculation visible

A small synthetic reporting example: combine group records with explicit denominators, then pass the same results to the service dashboard.

Original tools: Excel / VBA · Example calculations: PythonSynthetic example · independently invented data · One-page A3 landscape

01 / WORKED INTERVAL

10:00–10:30

Two invented group records; handling time is measured in seconds.

Input rows for the selected interval
GroupOfferedAnsweredHandling secondsWithin 20s
Group A28265,85022
Group B24225,61017
Combined524811,46039
11,460 ÷ 48238.75 seconds per answered call
39 ÷ 5275.0% answered within the example target

The group means are 225 and 255 seconds. Their unequal answered-call counts make the combined mean 238.75 seconds, rather than the unweighted 240.00 seconds.

SELECTED DEMONSTRATION CODE / PYTHON

State the denominator for each measure

rows contains the group records for one interval. Within-target counts are direct inputs; they are not inferred from average handling time.

offered = sum(row['offered'] for row in rows)
answered = sum(row['answered'] for row in rows)
handled = sum(row['handledSeconds'] for row in rows)
within = sum(row['withinTarget'] for row in rows)
aht = handled / answered if answered else None
within_share = within / offered if offered else None
Selected code from the new calculation that produces this example’s results.

02 / THE REPORTING OUTPUT

Apply the same calculation to every interval

Shared synthetic reporting window · 09:00–11:00
IntervalForecast callsActual callsChangeAnsweredAHT · sWithin 20s / offeredAvailable · h
09:00–09:303840+238195.7980.0%3.33
09:30–10:004644−243198.3786.4%3.17
10:00–10:305052+248238.7575.0%3.25
10:30–11:004240−239192.6985.0%3.33
Window total1761760168208.0181.3%13.08

Group records → interval calculations → one shared outputOpen the service dashboard using these rows ↗

Keep the measures distinct. AHT divides total handling seconds by answered calls. The response share divides the count answered within an illustrative 20-second target by offered calls. Zero denominators return no estimate. Available hours come from the separate schedule/shrinkage calculation; they are not a modelled staffing requirement.