MCPcopy Index your code
hub / github.com/simstudioai/sim / getCoveredUsage

Function getCoveredUsage

apps/sim/lib/billing/on-demand.ts:34–36  ·  view source on GitHub ↗
(planIncludedAmount: number, creditBalance: number)

Source from the content-addressed store, hash-verified

32 * limit already reflects the credits.
33 */
34export function getCoveredUsage(planIncludedAmount: number, creditBalance: number): number {
35 return planIncludedAmount + creditBalance
36}
37
38/**
39 * Whether on-demand (past-included) usage is enabled: the usage limit sits above

Callers 2

on-demand.test.tsFile · 0.90
BillingFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected