# Test Time Calculation

All of the routines within a project share a pool of test time.&#x20;

{% hint style="info" %}
For a given day, allocated test time is calculated as:

allocatedTestTime = timeoutSec **X** runs-per-day

* runs-per-day is derived from the routine interval
* timeoutSec and interval are configured in the [`routine.json`](https://docs.asserted.io/reference/routine-json)
  {% endhint %}

{% hint style="warning" %}
Test time is billed by how it is allocated based on timeout and interval, NOT based on how long a given test takes to complete.

If you configure a routine for 10 seconds of timeout and run it every minute, but it only takes 2 seconds to complete, you will still be billed for 10 seconds X the interval.
{% endhint %}

During execution, once the timeout for a specific routine is reached, the test is immediately aborted.&#x20;

The results of the completed tests (before the timeout occured) are still collected and recorded, but the test is marked as **TIMEOUT** and a notification is sent.
