MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / getWeekEnd

Function getWeekEnd

packages/billing/src/subscription.ts:137–142  ·  view source on GitHub ↗
(
  billingPeriodStart: Date,
  now: Date = new Date(),
)

Source from the content-addressed store, hash-verified

135 * Get the end of the current billing-aligned week (start of next week).
136 */
137export function getWeekEnd(
138 billingPeriodStart: Date,
139 now: Date = new Date(),
140): Date {
141 return addDays(getWeekStart(billingPeriodStart, now), 7)
142}
143
144// ---------------------------------------------------------------------------
145// Subscription limits

Callers 2

getWeeklyUsageFunction · 0.70

Calls 2

addDaysFunction · 0.85
getWeekStartFunction · 0.70

Tested by

no test coverage detected