import{_ as t,c as a,a0 as r,o}from"./chunks/framework.P9qPzDnn.js";const h=JSON.parse('{"title":"Function: estimateTime()","description":"","frontmatter":{"editLink":false},"headers":[],"relativePath":"api/data/common/functions/estimateTime.md","filePath":"api/data/common/functions/estimateTime.md","lastUpdated":null}'),i={name:"api/data/common/functions/estimateTime.md"};function n(c,e,s,d,l,m){return o(),a("div",null,e[0]||(e[0]=[r('

Profectus / data/common / estimateTime

Function: estimateTime()

estimateTime(resource, rate, target): ComputedRef<string>

Utility function for getting an ETA for when a target will be reached by a resource with a known (and assumed consistent) gain.

Parameters

resource

Resource

The resource that will be increasing over time.

rate

MaybeRefOrGetter<DecimalSource>

The rate at which the resource is increasing.

target

MaybeRefOrGetter<DecimalSource>

The target amount of the resource to estimate the duration until.

Returns

ComputedRef<string>

Defined in

profectus/src/data/common.tsx:424

',18)]))}const p=t(i,[["render",n]]);export{h as __pageData,p as default};