multiplyInterval - Multiply an interval by some number
The multiplyInterval
function multiplies a given interval by a number. This allows for extrapolation over time.
Note
multiplyInterval
works for both integer and decimal values.
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 be multiplied |
factor | number | true | The factor by which this interval should be multiplied |
Example - Calculating overall time remaining
Consider the following document:
We can see that we have 25
remaining tasks, and each task will take around 30s
. In order to calculate how long the overall wait time is, we can use multiplyInterval
:
This results in the following document:
Theme
Light