---
title: multiplyInterval
description: |
  Returns an interval multiplied by a numeric factor, allowing extrapolation over time.

  !!! note
      Both integer and decimal factors are supported.
url: https://coralogix.com/docs/dataprime/language-reference/functions-reference/time/multiplyinterval/
product: dataengine
feature: DataPrime Language
feature_id: dataprime-language
feature_identifier: dataengine/dataprime-language
last_updated: '2026-10-21'
---

# `multiplyInterval`

## Description

Returns an interval multiplied by a numeric factor, allowing extrapolation over time.

Note

Both integer and decimal factors are supported.

## Syntax

Like many functions in DataPrime, `multiplyInterval` supports<!-- --> [two notations](https://coralogix.com/docs/dataprime/language-reference/functions-reference.md),<!-- --> **function** and **method**. These interchangeable forms allow flexibility in how you structure expressions.

* Function notation
* Method notation

```
multiplyInterval(i: interval, factor: number): interval
```

```
(i: interval).multiplyInterval(factor: number): interval
```

## Arguments

| Name     | Type       | Required | Description                             |
| -------- | ---------- | -------- | --------------------------------------- |
| `i`      | `interval` | **true** | The interval to multiply                |
| `factor` | `number`   | **true** | The multiplier to apply to the interval |

## Example

**Use case: Estimate total processing time for queued jobs**

A document tracks how many jobs remain in the queue and the average time per job in seconds. Multiply the per-job interval by the number of jobs to calculate the total wait time.

```
{

    "jobs_in_queue": 25,

    "time_per_job_seconds": 30

}
```

### Example query

* Function notation
* Method notation

```
create overall_wait_time from toInterval(time_per_job_seconds, 's').multiplyInterval(jobs_in_queue)
```

```
create overall_wait_time from time_per_job_seconds.toInterval('s').multiplyInterval(jobs_in_queue)
```

### Example output

```
{

    "jobs_in_queue": 25,

    "time_per_job_seconds": 30,

    "overall_wait_time": "12m30s"

}
```
