lib/pricing.ts
export type Plan = "free" | "pro" | "team"

const PRICE: Record<Plan, number> = {
  free: 0,
  pro: 1290,
  team: 4900,
}

export function priceOf(plan: Plan, months = 1) {
  const base = PRICE[plan] * months

  if (months >= 12) {
    return Math.round(base * 0.8)
  }

  return base
}