The root .gitignore had `lib/` which matched frontend/src/lib/, causing Docker build to fail with "Module not found: Can't resolve '@/lib/utils'" and '@/lib/i18n'. Changed to `/lib/` so it only ignores the Python lib at repo root. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
7 lines
260 B
TypeScript
7 lines
260 B
TypeScript
export const ANNUAL_DISCOUNT_PERCENT = 20;
|
|
export const YEARLY_DISCOUNT_FACTOR = (100 - ANNUAL_DISCOUNT_PERCENT) / 100;
|
|
|
|
export function computeYearlyFromMonthly(monthly: number): number {
|
|
return Number((monthly * 12 * YEARLY_DISCOUNT_FACTOR).toFixed(2));
|
|
}
|