Token problems: 12 of 20
By Prof. Tom Yeh
Published: 2026-05-28
URL: https://www.byhand.ai/p/library-agents-tokens-the-average-call
Token problems: the workbook
- The Average Call
How do you estimate total usage when every call is different? Average a sample of recent calls to get a representative size, then multiply by the expected volume. Plans and budgets scale from the average, not from any single call. Agents running at production scale need this estimate to set daily budgets and catch cost spikes early.
Problem
An AI agent handled three sample calls of 400, 500, and 600 tokens. It will run 200 calls today. Using the average call size, estimate the total tokens for the day.
Average the sample calls

Multiply the average by the day's calls

Practice 1
An AI agent handled three sample calls of 300, 600, and 900 tokens. It will run 100 calls today. Using the average call size, estimate the total tokens for the day.
Average the sample calls

Multiply the average by the day's calls

Practice 2
An AI agent handled four sample calls of 200, 400, 400, and 600 tokens. It will run 500 calls today. Using the average call size, estimate the total tokens for the day.
Average the sample calls

Multiply the average by the day's calls

Next: 13. The System Prompt