Skip to the entry

Per-second vs per-minute vs per-hour billing, with worked examples

Answer
Per-second billing charges a run for the seconds it used; per-minute and per-hour billing round each run up to the next whole minute or hour. A 90-second run is billed 120 seconds per minute and 3,600 per hour: 1.33 and 40 times its use.

Per-second billing charges a run for exactly the seconds it used. Per-minute and per-hour billing round each run up to the next whole minute or hour. The difference is the rounding, and it falls hardest on short runs, which is what tests, browser sessions and agent steps usually are.

How does each billing increment round a run?

Each billing increment rounds a run's length up to the next whole step of that size:

billed seconds = ceiling(run seconds / step) x step
step: 1 for per-second, 60 for per-minute, 3600 for per-hour

A minute is 60 seconds and an hour 3,600 (NIST, "Units outside the SI", read 2026-11-26). The ratio of billed to used seconds is what the increment costs you.

What does the rounding do to runs of different lengths?

The rounding multiplies short runs many times over and barely touches long ones. These are worked examples of the arithmetic, not any provider's terms.

Table: Billed seconds and the billed-to-used ratio for example run lengths

Run lengthPer secondPer minuteRatio per minutePer hourRatio per hour
10 s10 s60 s6.003,600 s360
45 s45 s60 s1.333,600 s80
90 s90 s120 s1.333,600 s40
310 s (5 min 10 s)310 s360 s1.163,600 s11.6
3,700 s (61 min 40 s)3,700 s3,720 s1.017,200 s1.95

What does it mean for a month of runs?

For a month of runs, the increment can change the bill more than the rate does. A worked example at an example hourly price of 0.12 USD (a 2 vCPU, 4 GiB environment at example rates of 0.04 USD per vCPU-hour and 0.01 USD per GiB-hour): 20,000 runs a month, each 90 seconds, each in its own environment.

Table: One month of 20,000 runs of 90 seconds under each increment, at an example price

IncrementBilled per runSumMonthly cost
Per second90 s20,000 x 90 x 0.12 / 360060.00 USD
Per minute120 s20,000 x 120 x 0.12 / 360080.00 USD
Per hour3,600 s20,000 x 0.122,400.00 USD

The workload is the same in every row. Only the rounding changed.

How much does rounding cost on average?

On average, rounding costs about half a step per run when run lengths are spread evenly within each step: about 30 seconds per run under per-minute billing and about 30 minutes per run under per-hour billing. That is an average, not a rule; if most of your runs end just after a step boundary, as a 61-second run does, the waste is close to a full step.

To estimate it from your own data:

  1. Export the length in seconds of every run from last month, one number per line, into runs.txt.
  2. Work out the billed total for a step size (here 60 seconds) and compare it with the used total:
awk -v step=60 '{ used += $1; billed += (int(($1 + step - 1) / step)) * step }
  END { printf "used %d s, billed %d s, ratio %.3f\n", used, billed, billed / used }' runs.txt

The command works on whole seconds. Change step to 1 or 3600 to compare the other increments.

When does the increment stop mattering?

The increment stops mattering when runs are long compared with the step. A run of several hours billed per minute pays at most one extra minute, which is well under 1 percent. Long agent sessions, nightly regression suites and build jobs fall in this group; single tests, short browser sessions and agent tool calls do not.

How can I reduce rounding without changing provider?

Reduce rounding by putting more work into each billed run, so that each step is filled.

  1. Run several tests in one environment instead of one environment per test.
  2. Keep an environment for a batch of agent tasks when your isolation rules allow it.
  3. End environments as soon as work is done, so a run that would finish at 61 seconds is not left open to 120.

A minimum charge per run works differently from an increment, and the two often come together: see minimum charges on short runs.

What we read for this article

Common questions

What is the difference between per-second and per-hour billing?

Per-second billing charges each run for the seconds it used. Per-hour billing rounds each run up to whole hours, so a 90-second run is charged as a full hour.

How much more does per-minute billing cost than per-second?

On average about half a minute per run when run lengths are spread evenly, and more for very short runs. A 10-second run billed per minute is charged 6 times its use; a 61-minute run is charged less than 1 percent extra.

When does the billing increment not matter?

When runs are long compared with the increment. For runs of several hours, per-minute and per-second billing differ by a fraction of a percent.

Is per-second billing the same as no minimum?

No. Some price lists meter per second after a minimum charge per run, such as the first minute. Check both the increment and the minimum.