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)); }