# 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`](/reference/routine-json.md)
  {% 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.asserted.io/test-time-calculation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
