Calls in a Budget
Token problems: 15 of 20
Token problems: the workbook
Calls in a Budget
Given a fixed budget, how many calls can you make? Find the cost of one call first, then divide the budget by that cost. The result is the hard ceiling on how much work can be done in a session. For agents running autonomously, this ceiling determines how many steps the agent can take before it must stop.
Problem
An AI agent has a daily budget of 240 cents. Each call has 400 input tokens and 100 output tokens. Input is priced at 2 cents per 100 tokens; output at 8 cents per 100 tokens. How many calls can it make in a day?
Cost per call
Calls in the budget
Practice 1
An AI agent has a daily budget of 440 cents. Each call has 300 input tokens and 200 output tokens. Input is priced at 2 cents per 100 tokens; output at 8 cents per 100 tokens. How many calls can it make in a day?
Cost per call
Calls in the budget
Practice 2
An AI agent has a daily budget of 280 cents. Each call has 200 input tokens and 300 output tokens. Input is priced at 2 cents per 100 tokens; output at 8 cents per 100 tokens. How many calls can it make in a day?







