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, function and method notation. These interchangeable forms allow flexibility in how you structure expressions.
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.
Output
Theme
Light