Usage forecast
Daily usage with a projected month-end total and cost.
At about 74,143 requests a day you will use 1,980,429 by Oct 31, around $2,564.13, within your limit of 2,400,000.
| Day | requests that day | Running total |
|---|---|---|
| Oct 1 | 38000 | 38000 |
| Oct 2 | 41000 | 79000 |
| Oct 3 | 36000 | 115000 |
| Oct 4 | 52000 | 167000 |
| Oct 5 | 61000 | 228000 |
| Oct 6 | 44000 | 272000 |
| Oct 7 | 39000 | 311000 |
| Oct 8 | 47000 | 358000 |
| Oct 9 | 55000 | 413000 |
| Oct 10 | 63000 | 476000 |
| Oct 11 | 71000 | 547000 |
| Oct 12 | 58000 | 605000 |
| Oct 13 | 49000 | 654000 |
| Oct 14 | 66000 | 720000 |
| Oct 15 | 74000 | 794000 |
| Oct 16 | 69000 | 863000 |
| Oct 17 | 81000 | 944000 |
| Oct 18 | 77000 | 1021000 |
| Oct 19 | 62000 | 1083000 |
| Oct 20 | 70000 | 1153000 |
| Oct 21 | 86000 | 1239000 |
When to use
- Warning customers that they are heading over a limit.
- Showing the cost of staying on course.
When not to use
- There is too little history to project.
Installation
terminal
pnpm dlx shadcn@latest add @caliper/usage-forecast
Adds its 6 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.
API reference
UsageForecast
8 props
PropTypeDefaultDescription
label *string—
daily *readonly number[]—Usage on each day so far, oldest first.
days *number—Days in the billing period.
limitnumber—
unitNamestring"units"
startDatestring—First day of the period, "YYYY-MM-DD", for the labels.
cost((total: number) => string)—Converts a total to money for the summary.
classNamestring—
Keyboard
- No custom key handling; Tab and the native activation keys do the work.
Accessibility
It exposes img and status semantics, with aria-label and aria-hidden kept in step with state. Changes that matter are announced through a live region.
Notes for AI
Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.
/docs/components/usage-forecast.mdThe index of every part is at /llms.txt.