@utilix-tech/sdk 0.43.0 → 0.45.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- export { BASE_LABELS, BASE_PREFIXES, BYTE_UNITS, COMMON_CURRENCIES, COMMON_LOCALES, COMMON_PERMISSIONS, COMMON_RATIOS, COMMON_SIZES, COMMON_TAX_RATES, COMMON_TIP_PERCENTAGES, COMMON_VIEWPORTS, USD_DENOMINATIONS, applySuccessiveDiscounts, autoFormat, bumpVersion, calcAspectRatio, calcSubnet, calculateBreakEven, calculateCashBreakdown, calculateChange, calculateCompoundInterest, calculateDiscount, calculateEmi, calculateLoan, calculateMarginMarkup, calculatePercentageChange, calculateRoi, calculateRuleOf72, calculateSavingsGoal, calculateSimpleInterest, calculateTax, calculateTimeValue, calculateTipSplit, calculateVideoBitrate, compareSemver, compareUnitPrices, convert, convertAprApy, convertBytes, convertIp, coverBox, decimalToIp, decimalToIpCidr, describePermissions, fitIntoBox, formatNumber, formatValue, formatVwValue, formatWithSeparator, gcd, ipFromBinary, ipFromDecimal, ipFromHex, ipToBinary, ipToDecimal, ipToDecimalCidr, ipToHex, ipToOctal, isValid, isValidCidr, isValidIp, isValidIpv4, marginToMarkup, markupToMargin, octalToPermissions, parseFileSize, parseInput, parseNumberString, parseSemver, permissionsToChmod, permissionsToOctal, permissionsToSymbolic, ptToPx, pxToAll, pxToViewport, remToPx, satisfiesRange, scaleByHeight, scaleByWidth, sortVersions, splitSubnet, symbolicToPermissions, validateBarcode, validateCardNumber, validateIban, validateIsbn, viewportToPx } from '../chunk-2MTHD2LG.js';
1
+ export { BASE_LABELS, BASE_PREFIXES, BYTE_UNITS, COMMON_CURRENCIES, COMMON_LOCALES, COMMON_PERMISSIONS, COMMON_RATIOS, COMMON_SIZES, COMMON_TAX_RATES, COMMON_TIP_PERCENTAGES, COMMON_VIEWPORTS, USD_DENOMINATIONS, applySuccessiveDiscounts, autoFormat, bumpVersion, calcAspectRatio, calcSubnet, calculateBreakEven, calculateCashBreakdown, calculateCdMaturity, calculateChange, calculateCompoundInterest, calculateDiscount, calculateEmi, calculateLoan, calculateMarginMarkup, calculatePaybackPeriod, calculatePercentageChange, calculateRoi, calculateRuleOf72, calculateSavingsGoal, calculateSimpleInterest, calculateTax, calculateTimeValue, calculateTipSplit, calculateVideoBitrate, compareSemver, compareUnitPrices, convert, convertAprApy, convertBytes, convertIp, coverBox, decimalToIp, decimalToIpCidr, describePermissions, fitIntoBox, formatNumber, formatValue, formatVwValue, formatWithSeparator, gcd, ipFromBinary, ipFromDecimal, ipFromHex, ipToBinary, ipToDecimal, ipToDecimalCidr, ipToHex, ipToOctal, isValid, isValidCidr, isValidIp, isValidIpv4, marginToMarkup, markupToMargin, octalToPermissions, parseFileSize, parseInput, parseNumberString, parseSemver, permissionsToChmod, permissionsToOctal, permissionsToSymbolic, ptToPx, pxToAll, pxToViewport, remToPx, satisfiesRange, scaleByHeight, scaleByWidth, sortVersions, splitSubnet, symbolicToPermissions, validateBarcode, validateCardNumber, validateIban, validateIsbn, viewportToPx } from '../chunk-DFLHX4NW.js';
2
2
  import '../chunk-MLKGABMK.js';
@@ -33,6 +33,7 @@
33
33
  * - roi-calculator : calculateRoi
34
34
  * - unit-price-comparator : compareUnitPrices
35
35
  * - cash-till-calculator : calculateCashBreakdown, calculateChange, USD_DENOMINATIONS
36
+ * - payback-period-calculator : calculatePaybackPeriod
36
37
  */
37
38
  interface PxConvertResult {
38
39
  px: number;
@@ -807,6 +808,60 @@ declare function calculateCashBreakdown(amount: number, denominations: number[])
807
808
  declare function calculateChange(amountDue: number, amountTendered: number, denominations: number[]): CashChangeResult | {
808
809
  error: string;
809
810
  };
811
+ interface PaybackPeriodInput {
812
+ initialInvestment: number;
813
+ cashFlows: number[];
814
+ discountRatePercent?: number;
815
+ }
816
+ interface PaybackPeriodResult {
817
+ initialInvestment: number;
818
+ cashFlows: number[];
819
+ cumulativeCashFlows: number[];
820
+ paybackPeriod: number | null;
821
+ paybackPeriodRounded: number | null;
822
+ recovered: boolean;
823
+ discountRatePercent?: number;
824
+ discountedCashFlows?: number[];
825
+ discountedCumulativeCashFlows?: number[];
826
+ discountedPaybackPeriod?: number | null;
827
+ discountedPaybackPeriodRounded?: number | null;
828
+ discountedRecovered?: boolean;
829
+ }
830
+ /**
831
+ * From an initial investment and a series of periodic cash flows, find the
832
+ * point where cumulative cash flow turns positive again: the simple payback
833
+ * period, plus (when a discount rate is supplied) the discounted payback
834
+ * period, each cash flow discounted before accumulating. Pure arithmetic
835
+ * over a running cumulative sum, no live rate feed.
836
+ */
837
+ declare function calculatePaybackPeriod(input: PaybackPeriodInput): PaybackPeriodResult | {
838
+ error: string;
839
+ };
840
+ interface CdMaturityResult {
841
+ principal: number;
842
+ annualRatePercent: number;
843
+ termMonths: number;
844
+ compoundsPerYear: number;
845
+ maturityValue: number;
846
+ totalInterest: number;
847
+ apy: number;
848
+ earlyWithdrawalPenaltyMonths?: number;
849
+ earlyWithdrawalForfeitedInterest?: number;
850
+ earlyWithdrawalPayout?: number;
851
+ }
852
+ /**
853
+ * Compute the maturity value of a certificate of deposit given a principal,
854
+ * a nominal annual interest rate (as a percent), a term in months, and a
855
+ * compounding frequency (periods per year, e.g. 1 = annually, 12 = monthly).
856
+ * Also reports the effective annual yield (APY) implied by the nominal rate
857
+ * and compounding frequency. When an early-withdrawal penalty is given, in
858
+ * months of forfeited interest (the common bank convention), it also reports
859
+ * the net payout if withdrawn before maturity, with the forfeited interest
860
+ * capped at the total interest earned so payout never drops below principal.
861
+ */
862
+ declare function calculateCdMaturity(principal: number, annualRatePercent: number, termMonths: number, compoundsPerYear: number, earlyWithdrawalPenaltyMonths?: number): CdMaturityResult | {
863
+ error: string;
864
+ };
810
865
 
811
866
  type units_AmortizationRow = AmortizationRow;
812
867
  type units_AprApyDirection = AprApyDirection;
@@ -834,6 +889,7 @@ type units_CardValidationResult = CardValidationResult;
834
889
  type units_CashBreakdownResult = CashBreakdownResult;
835
890
  type units_CashChangeResult = CashChangeResult;
836
891
  type units_CashDenominationItem = CashDenominationItem;
892
+ type units_CdMaturityResult = CdMaturityResult;
837
893
  type units_CompareUnitPricesResult = CompareUnitPricesResult;
838
894
  type units_CompoundInterestResult = CompoundInterestResult;
839
895
  type units_CompoundYearRow = CompoundYearRow;
@@ -856,6 +912,8 @@ type units_MarginMarkupInput = MarginMarkupInput;
856
912
  type units_MarginMarkupResult = MarginMarkupResult;
857
913
  type units_NotationStyle = NotationStyle;
858
914
  type units_NumberBase = NumberBase;
915
+ type units_PaybackPeriodInput = PaybackPeriodInput;
916
+ type units_PaybackPeriodResult = PaybackPeriodResult;
859
917
  type units_PercentChangeDirection = PercentChangeDirection;
860
918
  type units_PercentageChangeResult = PercentageChangeResult;
861
919
  type units_Permission = Permission;
@@ -891,12 +949,14 @@ declare const units_calcAspectRatio: typeof calcAspectRatio;
891
949
  declare const units_calcSubnet: typeof calcSubnet;
892
950
  declare const units_calculateBreakEven: typeof calculateBreakEven;
893
951
  declare const units_calculateCashBreakdown: typeof calculateCashBreakdown;
952
+ declare const units_calculateCdMaturity: typeof calculateCdMaturity;
894
953
  declare const units_calculateChange: typeof calculateChange;
895
954
  declare const units_calculateCompoundInterest: typeof calculateCompoundInterest;
896
955
  declare const units_calculateDiscount: typeof calculateDiscount;
897
956
  declare const units_calculateEmi: typeof calculateEmi;
898
957
  declare const units_calculateLoan: typeof calculateLoan;
899
958
  declare const units_calculateMarginMarkup: typeof calculateMarginMarkup;
959
+ declare const units_calculatePaybackPeriod: typeof calculatePaybackPeriod;
900
960
  declare const units_calculatePercentageChange: typeof calculatePercentageChange;
901
961
  declare const units_calculateRoi: typeof calculateRoi;
902
962
  declare const units_calculateRuleOf72: typeof calculateRuleOf72;
@@ -960,7 +1020,7 @@ declare const units_validateIban: typeof validateIban;
960
1020
  declare const units_validateIsbn: typeof validateIsbn;
961
1021
  declare const units_viewportToPx: typeof viewportToPx;
962
1022
  declare namespace units {
963
- export { type units_AmortizationRow as AmortizationRow, type units_AprApyDirection as AprApyDirection, type units_AprApyResult as AprApyResult, type units_AspectRatioResult as AspectRatioResult, units_BASE_LABELS as BASE_LABELS, units_BASE_PREFIXES as BASE_PREFIXES, units_BYTE_UNITS as BYTE_UNITS, type units_BarcodeFormat as BarcodeFormat, type units_BarcodeValidationResult as BarcodeValidationResult, type units_BaseConvertResult as BaseConvertResult, type units_BreakEvenInput as BreakEvenInput, type units_BreakEvenResult as BreakEvenResult, type units_ByteConvertResult as ByteConvertResult, type units_ByteUnit as ByteUnit, units_COMMON_CURRENCIES as COMMON_CURRENCIES, units_COMMON_LOCALES as COMMON_LOCALES, units_COMMON_PERMISSIONS as COMMON_PERMISSIONS, units_COMMON_RATIOS as COMMON_RATIOS, units_COMMON_SIZES as COMMON_SIZES, units_COMMON_TAX_RATES as COMMON_TAX_RATES, units_COMMON_TIP_PERCENTAGES as COMMON_TIP_PERCENTAGES, units_COMMON_VIEWPORTS as COMMON_VIEWPORTS, type units_CardValidationResult as CardValidationResult, type units_CashBreakdownResult as CashBreakdownResult, type units_CashChangeResult as CashChangeResult, type units_CashDenominationItem as CashDenominationItem, type units_CompareUnitPricesResult as CompareUnitPricesResult, type units_CompoundInterestResult as CompoundInterestResult, type units_CompoundYearRow as CompoundYearRow, type units_Dimensions as Dimensions, type units_DiscountField as DiscountField, type units_DiscountInput as DiscountInput, type units_DiscountResult as DiscountResult, type units_EmiResult as EmiResult, type units_EmiTenureUnit as EmiTenureUnit, type units_EmiYearlyBreakdownRow as EmiYearlyBreakdownRow, type units_FilePermissions as FilePermissions, type units_FormatOptions as FormatOptions, type units_IbanValidationResult as IbanValidationResult, type units_IpConversion as IpConversion, type units_IsbnFormat as IsbnFormat, type units_IsbnResult as IsbnResult, type units_LoanResult as LoanResult, type units_MarginMarkupField as MarginMarkupField, type units_MarginMarkupInput as MarginMarkupInput, type units_MarginMarkupResult as MarginMarkupResult, type units_NotationStyle as NotationStyle, type units_NumberBase as NumberBase, type units_PercentChangeDirection as PercentChangeDirection, type units_PercentageChangeResult as PercentageChangeResult, type units_Permission as Permission, type units_PxConvertResult as PxConvertResult, type units_RoiInput as RoiInput, type units_RoiResult as RoiResult, type units_RuleOf72Direction as RuleOf72Direction, type units_RuleOf72Result as RuleOf72Result, type units_SavingsGoalInput as SavingsGoalInput, type units_SavingsGoalMode as SavingsGoalMode, type units_SavingsGoalResult as SavingsGoalResult, type units_SemverVersion as SemverVersion, type units_SimpleInterestResult as SimpleInterestResult, type units_SubnetInfo as SubnetInfo, type units_SuccessiveDiscountResult as SuccessiveDiscountResult, type units_SuccessiveDiscountStep as SuccessiveDiscountStep, type units_TaxDirection as TaxDirection, type units_TaxResult as TaxResult, type units_TimeValueDirection as TimeValueDirection, type units_TimeValueResult as TimeValueResult, type units_TipSplitResult as TipSplitResult, units_USD_DENOMINATIONS as USD_DENOMINATIONS, type units_UnitPriceItem as UnitPriceItem, type units_UnitPriceResult as UnitPriceResult, type units_VideoBitrateInput as VideoBitrateInput, type units_VideoBitrateMode as VideoBitrateMode, type units_VideoBitrateResult as VideoBitrateResult, type units_ViewportConvertResult as ViewportConvertResult, units_applySuccessiveDiscounts as applySuccessiveDiscounts, units_autoFormat as autoFormat, units_bumpVersion as bumpVersion, units_calcAspectRatio as calcAspectRatio, units_calcSubnet as calcSubnet, units_calculateBreakEven as calculateBreakEven, units_calculateCashBreakdown as calculateCashBreakdown, units_calculateChange as calculateChange, units_calculateCompoundInterest as calculateCompoundInterest, units_calculateDiscount as calculateDiscount, units_calculateEmi as calculateEmi, units_calculateLoan as calculateLoan, units_calculateMarginMarkup as calculateMarginMarkup, units_calculatePercentageChange as calculatePercentageChange, units_calculateRoi as calculateRoi, units_calculateRuleOf72 as calculateRuleOf72, units_calculateSavingsGoal as calculateSavingsGoal, units_calculateSimpleInterest as calculateSimpleInterest, units_calculateTax as calculateTax, units_calculateTimeValue as calculateTimeValue, units_calculateTipSplit as calculateTipSplit, units_calculateVideoBitrate as calculateVideoBitrate, units_compareSemver as compareSemver, units_compareUnitPrices as compareUnitPrices, units_convert as convert, units_convertAprApy as convertAprApy, units_convertBytes as convertBytes, units_convertIp as convertIp, units_coverBox as coverBox, units_decimalToIp as decimalToIp, units_decimalToIpCidr as decimalToIpCidr, units_describePermissions as describePermissions, units_fitIntoBox as fitIntoBox, units_formatNumber as formatNumber, units_formatValue as formatValue, units_formatVwValue as formatVwValue, units_formatWithSeparator as formatWithSeparator, units_gcd as gcd, units_ipFromBinary as ipFromBinary, units_ipFromDecimal as ipFromDecimal, units_ipFromHex as ipFromHex, units_ipToBinary as ipToBinary, units_ipToDecimal as ipToDecimal, units_ipToDecimalCidr as ipToDecimalCidr, units_ipToHex as ipToHex, units_ipToOctal as ipToOctal, units_isValid as isValid, units_isValidCidr as isValidCidr, units_isValidIp as isValidIp, units_isValidIpv4 as isValidIpv4, units_marginToMarkup as marginToMarkup, units_markupToMargin as markupToMargin, units_octalToPermissions as octalToPermissions, units_parseFileSize as parseFileSize, units_parseInput as parseInput, units_parseNumberString as parseNumberString, units_parseSemver as parseSemver, units_permissionsToChmod as permissionsToChmod, units_permissionsToOctal as permissionsToOctal, units_permissionsToSymbolic as permissionsToSymbolic, units_ptToPx as ptToPx, units_pxToAll as pxToAll, units_pxToViewport as pxToViewport, units_remToPx as remToPx, units_satisfiesRange as satisfiesRange, units_scaleByHeight as scaleByHeight, units_scaleByWidth as scaleByWidth, units_sortVersions as sortVersions, units_splitSubnet as splitSubnet, units_symbolicToPermissions as symbolicToPermissions, units_validateBarcode as validateBarcode, units_validateCardNumber as validateCardNumber, units_validateIban as validateIban, units_validateIsbn as validateIsbn, units_viewportToPx as viewportToPx };
1023
+ export { type units_AmortizationRow as AmortizationRow, type units_AprApyDirection as AprApyDirection, type units_AprApyResult as AprApyResult, type units_AspectRatioResult as AspectRatioResult, units_BASE_LABELS as BASE_LABELS, units_BASE_PREFIXES as BASE_PREFIXES, units_BYTE_UNITS as BYTE_UNITS, type units_BarcodeFormat as BarcodeFormat, type units_BarcodeValidationResult as BarcodeValidationResult, type units_BaseConvertResult as BaseConvertResult, type units_BreakEvenInput as BreakEvenInput, type units_BreakEvenResult as BreakEvenResult, type units_ByteConvertResult as ByteConvertResult, type units_ByteUnit as ByteUnit, units_COMMON_CURRENCIES as COMMON_CURRENCIES, units_COMMON_LOCALES as COMMON_LOCALES, units_COMMON_PERMISSIONS as COMMON_PERMISSIONS, units_COMMON_RATIOS as COMMON_RATIOS, units_COMMON_SIZES as COMMON_SIZES, units_COMMON_TAX_RATES as COMMON_TAX_RATES, units_COMMON_TIP_PERCENTAGES as COMMON_TIP_PERCENTAGES, units_COMMON_VIEWPORTS as COMMON_VIEWPORTS, type units_CardValidationResult as CardValidationResult, type units_CashBreakdownResult as CashBreakdownResult, type units_CashChangeResult as CashChangeResult, type units_CashDenominationItem as CashDenominationItem, type units_CdMaturityResult as CdMaturityResult, type units_CompareUnitPricesResult as CompareUnitPricesResult, type units_CompoundInterestResult as CompoundInterestResult, type units_CompoundYearRow as CompoundYearRow, type units_Dimensions as Dimensions, type units_DiscountField as DiscountField, type units_DiscountInput as DiscountInput, type units_DiscountResult as DiscountResult, type units_EmiResult as EmiResult, type units_EmiTenureUnit as EmiTenureUnit, type units_EmiYearlyBreakdownRow as EmiYearlyBreakdownRow, type units_FilePermissions as FilePermissions, type units_FormatOptions as FormatOptions, type units_IbanValidationResult as IbanValidationResult, type units_IpConversion as IpConversion, type units_IsbnFormat as IsbnFormat, type units_IsbnResult as IsbnResult, type units_LoanResult as LoanResult, type units_MarginMarkupField as MarginMarkupField, type units_MarginMarkupInput as MarginMarkupInput, type units_MarginMarkupResult as MarginMarkupResult, type units_NotationStyle as NotationStyle, type units_NumberBase as NumberBase, type units_PaybackPeriodInput as PaybackPeriodInput, type units_PaybackPeriodResult as PaybackPeriodResult, type units_PercentChangeDirection as PercentChangeDirection, type units_PercentageChangeResult as PercentageChangeResult, type units_Permission as Permission, type units_PxConvertResult as PxConvertResult, type units_RoiInput as RoiInput, type units_RoiResult as RoiResult, type units_RuleOf72Direction as RuleOf72Direction, type units_RuleOf72Result as RuleOf72Result, type units_SavingsGoalInput as SavingsGoalInput, type units_SavingsGoalMode as SavingsGoalMode, type units_SavingsGoalResult as SavingsGoalResult, type units_SemverVersion as SemverVersion, type units_SimpleInterestResult as SimpleInterestResult, type units_SubnetInfo as SubnetInfo, type units_SuccessiveDiscountResult as SuccessiveDiscountResult, type units_SuccessiveDiscountStep as SuccessiveDiscountStep, type units_TaxDirection as TaxDirection, type units_TaxResult as TaxResult, type units_TimeValueDirection as TimeValueDirection, type units_TimeValueResult as TimeValueResult, type units_TipSplitResult as TipSplitResult, units_USD_DENOMINATIONS as USD_DENOMINATIONS, type units_UnitPriceItem as UnitPriceItem, type units_UnitPriceResult as UnitPriceResult, type units_VideoBitrateInput as VideoBitrateInput, type units_VideoBitrateMode as VideoBitrateMode, type units_VideoBitrateResult as VideoBitrateResult, type units_ViewportConvertResult as ViewportConvertResult, units_applySuccessiveDiscounts as applySuccessiveDiscounts, units_autoFormat as autoFormat, units_bumpVersion as bumpVersion, units_calcAspectRatio as calcAspectRatio, units_calcSubnet as calcSubnet, units_calculateBreakEven as calculateBreakEven, units_calculateCashBreakdown as calculateCashBreakdown, units_calculateCdMaturity as calculateCdMaturity, units_calculateChange as calculateChange, units_calculateCompoundInterest as calculateCompoundInterest, units_calculateDiscount as calculateDiscount, units_calculateEmi as calculateEmi, units_calculateLoan as calculateLoan, units_calculateMarginMarkup as calculateMarginMarkup, units_calculatePaybackPeriod as calculatePaybackPeriod, units_calculatePercentageChange as calculatePercentageChange, units_calculateRoi as calculateRoi, units_calculateRuleOf72 as calculateRuleOf72, units_calculateSavingsGoal as calculateSavingsGoal, units_calculateSimpleInterest as calculateSimpleInterest, units_calculateTax as calculateTax, units_calculateTimeValue as calculateTimeValue, units_calculateTipSplit as calculateTipSplit, units_calculateVideoBitrate as calculateVideoBitrate, units_compareSemver as compareSemver, units_compareUnitPrices as compareUnitPrices, units_convert as convert, units_convertAprApy as convertAprApy, units_convertBytes as convertBytes, units_convertIp as convertIp, units_coverBox as coverBox, units_decimalToIp as decimalToIp, units_decimalToIpCidr as decimalToIpCidr, units_describePermissions as describePermissions, units_fitIntoBox as fitIntoBox, units_formatNumber as formatNumber, units_formatValue as formatValue, units_formatVwValue as formatVwValue, units_formatWithSeparator as formatWithSeparator, units_gcd as gcd, units_ipFromBinary as ipFromBinary, units_ipFromDecimal as ipFromDecimal, units_ipFromHex as ipFromHex, units_ipToBinary as ipToBinary, units_ipToDecimal as ipToDecimal, units_ipToDecimalCidr as ipToDecimalCidr, units_ipToHex as ipToHex, units_ipToOctal as ipToOctal, units_isValid as isValid, units_isValidCidr as isValidCidr, units_isValidIp as isValidIp, units_isValidIpv4 as isValidIpv4, units_marginToMarkup as marginToMarkup, units_markupToMargin as markupToMargin, units_octalToPermissions as octalToPermissions, units_parseFileSize as parseFileSize, units_parseInput as parseInput, units_parseNumberString as parseNumberString, units_parseSemver as parseSemver, units_permissionsToChmod as permissionsToChmod, units_permissionsToOctal as permissionsToOctal, units_permissionsToSymbolic as permissionsToSymbolic, units_ptToPx as ptToPx, units_pxToAll as pxToAll, units_pxToViewport as pxToViewport, units_remToPx as remToPx, units_satisfiesRange as satisfiesRange, units_scaleByHeight as scaleByHeight, units_scaleByWidth as scaleByWidth, units_sortVersions as sortVersions, units_splitSubnet as splitSubnet, units_symbolicToPermissions as symbolicToPermissions, units_validateBarcode as validateBarcode, units_validateCardNumber as validateCardNumber, units_validateIban as validateIban, units_validateIsbn as validateIsbn, units_viewportToPx as viewportToPx };
964
1024
  }
965
1025
 
966
- export { type RoiInput as $, type AmortizationRow as A, BASE_LABELS as B, COMMON_CURRENCIES as C, type CompoundYearRow as D, type Dimensions as E, type DiscountField as F, type DiscountInput as G, type DiscountResult as H, type EmiResult as I, type EmiTenureUnit as J, type EmiYearlyBreakdownRow as K, type FilePermissions as L, type FormatOptions as M, type IbanValidationResult as N, type IpConversion as O, type IsbnFormat as P, type IsbnResult as Q, type LoanResult as R, type MarginMarkupField as S, type MarginMarkupInput as T, type MarginMarkupResult as U, type NotationStyle as V, type NumberBase as W, type PercentChangeDirection as X, type PercentageChangeResult as Y, type Permission as Z, type PxConvertResult as _, type AprApyDirection as a, ipFromHex as a$, type RoiResult as a0, type RuleOf72Direction as a1, type RuleOf72Result as a2, type SavingsGoalInput as a3, type SavingsGoalMode as a4, type SavingsGoalResult as a5, type SemverVersion as a6, type SimpleInterestResult as a7, type SubnetInfo as a8, type SuccessiveDiscountResult as a9, calculatePercentageChange as aA, calculateRoi as aB, calculateRuleOf72 as aC, calculateSavingsGoal as aD, calculateSimpleInterest as aE, calculateTax as aF, calculateTimeValue as aG, calculateTipSplit as aH, calculateVideoBitrate as aI, compareSemver as aJ, compareUnitPrices as aK, convert as aL, convertAprApy as aM, convertBytes as aN, convertIp as aO, coverBox as aP, decimalToIp as aQ, decimalToIpCidr as aR, describePermissions as aS, fitIntoBox as aT, formatNumber as aU, formatValue as aV, formatVwValue as aW, formatWithSeparator as aX, gcd as aY, ipFromBinary as aZ, ipFromDecimal as a_, type SuccessiveDiscountStep as aa, type TaxDirection as ab, type TaxResult as ac, type TimeValueDirection as ad, type TimeValueResult as ae, type TipSplitResult as af, USD_DENOMINATIONS as ag, type UnitPriceItem as ah, type UnitPriceResult as ai, type VideoBitrateInput as aj, type VideoBitrateMode as ak, type VideoBitrateResult as al, type ViewportConvertResult as am, applySuccessiveDiscounts as an, autoFormat as ao, bumpVersion as ap, calcAspectRatio as aq, calcSubnet as ar, calculateBreakEven as as, calculateCashBreakdown as at, calculateChange as au, calculateCompoundInterest as av, calculateDiscount as aw, calculateEmi as ax, calculateLoan as ay, calculateMarginMarkup as az, type AprApyResult as b, ipToBinary as b0, ipToDecimal as b1, ipToDecimalCidr as b2, ipToHex as b3, ipToOctal as b4, isValid as b5, isValidCidr as b6, isValidIp as b7, isValidIpv4 as b8, marginToMarkup as b9, markupToMargin as ba, octalToPermissions as bb, parseFileSize as bc, parseInput as bd, parseNumberString as be, parseSemver as bf, permissionsToChmod as bg, permissionsToOctal as bh, permissionsToSymbolic as bi, ptToPx as bj, pxToAll as bk, pxToViewport as bl, remToPx as bm, satisfiesRange as bn, scaleByHeight as bo, scaleByWidth as bp, sortVersions as bq, splitSubnet as br, symbolicToPermissions as bs, validateBarcode as bt, validateCardNumber as bu, validateIban as bv, validateIsbn as bw, viewportToPx as bx, type AspectRatioResult as c, BASE_PREFIXES as d, BYTE_UNITS as e, type BarcodeFormat as f, type BarcodeValidationResult as g, type BaseConvertResult as h, type BreakEvenInput as i, type BreakEvenResult as j, type ByteConvertResult as k, type ByteUnit as l, COMMON_LOCALES as m, COMMON_PERMISSIONS as n, COMMON_RATIOS as o, COMMON_SIZES as p, COMMON_TAX_RATES as q, COMMON_TIP_PERCENTAGES as r, COMMON_VIEWPORTS as s, type CardValidationResult as t, units as u, type CashBreakdownResult as v, type CashChangeResult as w, type CashDenominationItem as x, type CompareUnitPricesResult as y, type CompoundInterestResult as z };
1026
+ export { type PercentageChangeResult as $, type AmortizationRow as A, BASE_LABELS as B, COMMON_CURRENCIES as C, type CompoundInterestResult as D, type CompoundYearRow as E, type Dimensions as F, type DiscountField as G, type DiscountInput as H, type DiscountResult as I, type EmiResult as J, type EmiTenureUnit as K, type EmiYearlyBreakdownRow as L, type FilePermissions as M, type FormatOptions as N, type IbanValidationResult as O, type IpConversion as P, type IsbnFormat as Q, type IsbnResult as R, type LoanResult as S, type MarginMarkupField as T, type MarginMarkupInput as U, type MarginMarkupResult as V, type NotationStyle as W, type NumberBase as X, type PaybackPeriodInput as Y, type PaybackPeriodResult as Z, type PercentChangeDirection as _, type AprApyDirection as a, formatVwValue as a$, type Permission as a0, type PxConvertResult as a1, type RoiInput as a2, type RoiResult as a3, type RuleOf72Direction as a4, type RuleOf72Result as a5, type SavingsGoalInput as a6, type SavingsGoalMode as a7, type SavingsGoalResult as a8, type SemverVersion as a9, calculateDiscount as aA, calculateEmi as aB, calculateLoan as aC, calculateMarginMarkup as aD, calculatePaybackPeriod as aE, calculatePercentageChange as aF, calculateRoi as aG, calculateRuleOf72 as aH, calculateSavingsGoal as aI, calculateSimpleInterest as aJ, calculateTax as aK, calculateTimeValue as aL, calculateTipSplit as aM, calculateVideoBitrate as aN, compareSemver as aO, compareUnitPrices as aP, convert as aQ, convertAprApy as aR, convertBytes as aS, convertIp as aT, coverBox as aU, decimalToIp as aV, decimalToIpCidr as aW, describePermissions as aX, fitIntoBox as aY, formatNumber as aZ, formatValue as a_, type SimpleInterestResult as aa, type SubnetInfo as ab, type SuccessiveDiscountResult as ac, type SuccessiveDiscountStep as ad, type TaxDirection as ae, type TaxResult as af, type TimeValueDirection as ag, type TimeValueResult as ah, type TipSplitResult as ai, USD_DENOMINATIONS as aj, type UnitPriceItem as ak, type UnitPriceResult as al, type VideoBitrateInput as am, type VideoBitrateMode as an, type VideoBitrateResult as ao, type ViewportConvertResult as ap, applySuccessiveDiscounts as aq, autoFormat as ar, bumpVersion as as, calcAspectRatio as at, calcSubnet as au, calculateBreakEven as av, calculateCashBreakdown as aw, calculateCdMaturity as ax, calculateChange as ay, calculateCompoundInterest as az, type AprApyResult as b, formatWithSeparator as b0, gcd as b1, ipFromBinary as b2, ipFromDecimal as b3, ipFromHex as b4, ipToBinary as b5, ipToDecimal as b6, ipToDecimalCidr as b7, ipToHex as b8, ipToOctal as b9, validateIban as bA, validateIsbn as bB, viewportToPx as bC, isValid as ba, isValidCidr as bb, isValidIp as bc, isValidIpv4 as bd, marginToMarkup as be, markupToMargin as bf, octalToPermissions as bg, parseFileSize as bh, parseInput as bi, parseNumberString as bj, parseSemver as bk, permissionsToChmod as bl, permissionsToOctal as bm, permissionsToSymbolic as bn, ptToPx as bo, pxToAll as bp, pxToViewport as bq, remToPx as br, satisfiesRange as bs, scaleByHeight as bt, scaleByWidth as bu, sortVersions as bv, splitSubnet as bw, symbolicToPermissions as bx, validateBarcode as by, validateCardNumber as bz, type AspectRatioResult as c, BASE_PREFIXES as d, BYTE_UNITS as e, type BarcodeFormat as f, type BarcodeValidationResult as g, type BaseConvertResult as h, type BreakEvenInput as i, type BreakEvenResult as j, type ByteConvertResult as k, type ByteUnit as l, COMMON_LOCALES as m, COMMON_PERMISSIONS as n, COMMON_RATIOS as o, COMMON_SIZES as p, COMMON_TAX_RATES as q, COMMON_TIP_PERCENTAGES as r, COMMON_VIEWPORTS as s, type CardValidationResult as t, units as u, type CashBreakdownResult as v, type CashChangeResult as w, type CashDenominationItem as x, type CdMaturityResult as y, type CompareUnitPricesResult as z };
@@ -33,6 +33,7 @@
33
33
  * - roi-calculator : calculateRoi
34
34
  * - unit-price-comparator : compareUnitPrices
35
35
  * - cash-till-calculator : calculateCashBreakdown, calculateChange, USD_DENOMINATIONS
36
+ * - payback-period-calculator : calculatePaybackPeriod
36
37
  */
37
38
  interface PxConvertResult {
38
39
  px: number;
@@ -807,6 +808,60 @@ declare function calculateCashBreakdown(amount: number, denominations: number[])
807
808
  declare function calculateChange(amountDue: number, amountTendered: number, denominations: number[]): CashChangeResult | {
808
809
  error: string;
809
810
  };
811
+ interface PaybackPeriodInput {
812
+ initialInvestment: number;
813
+ cashFlows: number[];
814
+ discountRatePercent?: number;
815
+ }
816
+ interface PaybackPeriodResult {
817
+ initialInvestment: number;
818
+ cashFlows: number[];
819
+ cumulativeCashFlows: number[];
820
+ paybackPeriod: number | null;
821
+ paybackPeriodRounded: number | null;
822
+ recovered: boolean;
823
+ discountRatePercent?: number;
824
+ discountedCashFlows?: number[];
825
+ discountedCumulativeCashFlows?: number[];
826
+ discountedPaybackPeriod?: number | null;
827
+ discountedPaybackPeriodRounded?: number | null;
828
+ discountedRecovered?: boolean;
829
+ }
830
+ /**
831
+ * From an initial investment and a series of periodic cash flows, find the
832
+ * point where cumulative cash flow turns positive again: the simple payback
833
+ * period, plus (when a discount rate is supplied) the discounted payback
834
+ * period, each cash flow discounted before accumulating. Pure arithmetic
835
+ * over a running cumulative sum, no live rate feed.
836
+ */
837
+ declare function calculatePaybackPeriod(input: PaybackPeriodInput): PaybackPeriodResult | {
838
+ error: string;
839
+ };
840
+ interface CdMaturityResult {
841
+ principal: number;
842
+ annualRatePercent: number;
843
+ termMonths: number;
844
+ compoundsPerYear: number;
845
+ maturityValue: number;
846
+ totalInterest: number;
847
+ apy: number;
848
+ earlyWithdrawalPenaltyMonths?: number;
849
+ earlyWithdrawalForfeitedInterest?: number;
850
+ earlyWithdrawalPayout?: number;
851
+ }
852
+ /**
853
+ * Compute the maturity value of a certificate of deposit given a principal,
854
+ * a nominal annual interest rate (as a percent), a term in months, and a
855
+ * compounding frequency (periods per year, e.g. 1 = annually, 12 = monthly).
856
+ * Also reports the effective annual yield (APY) implied by the nominal rate
857
+ * and compounding frequency. When an early-withdrawal penalty is given, in
858
+ * months of forfeited interest (the common bank convention), it also reports
859
+ * the net payout if withdrawn before maturity, with the forfeited interest
860
+ * capped at the total interest earned so payout never drops below principal.
861
+ */
862
+ declare function calculateCdMaturity(principal: number, annualRatePercent: number, termMonths: number, compoundsPerYear: number, earlyWithdrawalPenaltyMonths?: number): CdMaturityResult | {
863
+ error: string;
864
+ };
810
865
 
811
866
  type units_AmortizationRow = AmortizationRow;
812
867
  type units_AprApyDirection = AprApyDirection;
@@ -834,6 +889,7 @@ type units_CardValidationResult = CardValidationResult;
834
889
  type units_CashBreakdownResult = CashBreakdownResult;
835
890
  type units_CashChangeResult = CashChangeResult;
836
891
  type units_CashDenominationItem = CashDenominationItem;
892
+ type units_CdMaturityResult = CdMaturityResult;
837
893
  type units_CompareUnitPricesResult = CompareUnitPricesResult;
838
894
  type units_CompoundInterestResult = CompoundInterestResult;
839
895
  type units_CompoundYearRow = CompoundYearRow;
@@ -856,6 +912,8 @@ type units_MarginMarkupInput = MarginMarkupInput;
856
912
  type units_MarginMarkupResult = MarginMarkupResult;
857
913
  type units_NotationStyle = NotationStyle;
858
914
  type units_NumberBase = NumberBase;
915
+ type units_PaybackPeriodInput = PaybackPeriodInput;
916
+ type units_PaybackPeriodResult = PaybackPeriodResult;
859
917
  type units_PercentChangeDirection = PercentChangeDirection;
860
918
  type units_PercentageChangeResult = PercentageChangeResult;
861
919
  type units_Permission = Permission;
@@ -891,12 +949,14 @@ declare const units_calcAspectRatio: typeof calcAspectRatio;
891
949
  declare const units_calcSubnet: typeof calcSubnet;
892
950
  declare const units_calculateBreakEven: typeof calculateBreakEven;
893
951
  declare const units_calculateCashBreakdown: typeof calculateCashBreakdown;
952
+ declare const units_calculateCdMaturity: typeof calculateCdMaturity;
894
953
  declare const units_calculateChange: typeof calculateChange;
895
954
  declare const units_calculateCompoundInterest: typeof calculateCompoundInterest;
896
955
  declare const units_calculateDiscount: typeof calculateDiscount;
897
956
  declare const units_calculateEmi: typeof calculateEmi;
898
957
  declare const units_calculateLoan: typeof calculateLoan;
899
958
  declare const units_calculateMarginMarkup: typeof calculateMarginMarkup;
959
+ declare const units_calculatePaybackPeriod: typeof calculatePaybackPeriod;
900
960
  declare const units_calculatePercentageChange: typeof calculatePercentageChange;
901
961
  declare const units_calculateRoi: typeof calculateRoi;
902
962
  declare const units_calculateRuleOf72: typeof calculateRuleOf72;
@@ -960,7 +1020,7 @@ declare const units_validateIban: typeof validateIban;
960
1020
  declare const units_validateIsbn: typeof validateIsbn;
961
1021
  declare const units_viewportToPx: typeof viewportToPx;
962
1022
  declare namespace units {
963
- export { type units_AmortizationRow as AmortizationRow, type units_AprApyDirection as AprApyDirection, type units_AprApyResult as AprApyResult, type units_AspectRatioResult as AspectRatioResult, units_BASE_LABELS as BASE_LABELS, units_BASE_PREFIXES as BASE_PREFIXES, units_BYTE_UNITS as BYTE_UNITS, type units_BarcodeFormat as BarcodeFormat, type units_BarcodeValidationResult as BarcodeValidationResult, type units_BaseConvertResult as BaseConvertResult, type units_BreakEvenInput as BreakEvenInput, type units_BreakEvenResult as BreakEvenResult, type units_ByteConvertResult as ByteConvertResult, type units_ByteUnit as ByteUnit, units_COMMON_CURRENCIES as COMMON_CURRENCIES, units_COMMON_LOCALES as COMMON_LOCALES, units_COMMON_PERMISSIONS as COMMON_PERMISSIONS, units_COMMON_RATIOS as COMMON_RATIOS, units_COMMON_SIZES as COMMON_SIZES, units_COMMON_TAX_RATES as COMMON_TAX_RATES, units_COMMON_TIP_PERCENTAGES as COMMON_TIP_PERCENTAGES, units_COMMON_VIEWPORTS as COMMON_VIEWPORTS, type units_CardValidationResult as CardValidationResult, type units_CashBreakdownResult as CashBreakdownResult, type units_CashChangeResult as CashChangeResult, type units_CashDenominationItem as CashDenominationItem, type units_CompareUnitPricesResult as CompareUnitPricesResult, type units_CompoundInterestResult as CompoundInterestResult, type units_CompoundYearRow as CompoundYearRow, type units_Dimensions as Dimensions, type units_DiscountField as DiscountField, type units_DiscountInput as DiscountInput, type units_DiscountResult as DiscountResult, type units_EmiResult as EmiResult, type units_EmiTenureUnit as EmiTenureUnit, type units_EmiYearlyBreakdownRow as EmiYearlyBreakdownRow, type units_FilePermissions as FilePermissions, type units_FormatOptions as FormatOptions, type units_IbanValidationResult as IbanValidationResult, type units_IpConversion as IpConversion, type units_IsbnFormat as IsbnFormat, type units_IsbnResult as IsbnResult, type units_LoanResult as LoanResult, type units_MarginMarkupField as MarginMarkupField, type units_MarginMarkupInput as MarginMarkupInput, type units_MarginMarkupResult as MarginMarkupResult, type units_NotationStyle as NotationStyle, type units_NumberBase as NumberBase, type units_PercentChangeDirection as PercentChangeDirection, type units_PercentageChangeResult as PercentageChangeResult, type units_Permission as Permission, type units_PxConvertResult as PxConvertResult, type units_RoiInput as RoiInput, type units_RoiResult as RoiResult, type units_RuleOf72Direction as RuleOf72Direction, type units_RuleOf72Result as RuleOf72Result, type units_SavingsGoalInput as SavingsGoalInput, type units_SavingsGoalMode as SavingsGoalMode, type units_SavingsGoalResult as SavingsGoalResult, type units_SemverVersion as SemverVersion, type units_SimpleInterestResult as SimpleInterestResult, type units_SubnetInfo as SubnetInfo, type units_SuccessiveDiscountResult as SuccessiveDiscountResult, type units_SuccessiveDiscountStep as SuccessiveDiscountStep, type units_TaxDirection as TaxDirection, type units_TaxResult as TaxResult, type units_TimeValueDirection as TimeValueDirection, type units_TimeValueResult as TimeValueResult, type units_TipSplitResult as TipSplitResult, units_USD_DENOMINATIONS as USD_DENOMINATIONS, type units_UnitPriceItem as UnitPriceItem, type units_UnitPriceResult as UnitPriceResult, type units_VideoBitrateInput as VideoBitrateInput, type units_VideoBitrateMode as VideoBitrateMode, type units_VideoBitrateResult as VideoBitrateResult, type units_ViewportConvertResult as ViewportConvertResult, units_applySuccessiveDiscounts as applySuccessiveDiscounts, units_autoFormat as autoFormat, units_bumpVersion as bumpVersion, units_calcAspectRatio as calcAspectRatio, units_calcSubnet as calcSubnet, units_calculateBreakEven as calculateBreakEven, units_calculateCashBreakdown as calculateCashBreakdown, units_calculateChange as calculateChange, units_calculateCompoundInterest as calculateCompoundInterest, units_calculateDiscount as calculateDiscount, units_calculateEmi as calculateEmi, units_calculateLoan as calculateLoan, units_calculateMarginMarkup as calculateMarginMarkup, units_calculatePercentageChange as calculatePercentageChange, units_calculateRoi as calculateRoi, units_calculateRuleOf72 as calculateRuleOf72, units_calculateSavingsGoal as calculateSavingsGoal, units_calculateSimpleInterest as calculateSimpleInterest, units_calculateTax as calculateTax, units_calculateTimeValue as calculateTimeValue, units_calculateTipSplit as calculateTipSplit, units_calculateVideoBitrate as calculateVideoBitrate, units_compareSemver as compareSemver, units_compareUnitPrices as compareUnitPrices, units_convert as convert, units_convertAprApy as convertAprApy, units_convertBytes as convertBytes, units_convertIp as convertIp, units_coverBox as coverBox, units_decimalToIp as decimalToIp, units_decimalToIpCidr as decimalToIpCidr, units_describePermissions as describePermissions, units_fitIntoBox as fitIntoBox, units_formatNumber as formatNumber, units_formatValue as formatValue, units_formatVwValue as formatVwValue, units_formatWithSeparator as formatWithSeparator, units_gcd as gcd, units_ipFromBinary as ipFromBinary, units_ipFromDecimal as ipFromDecimal, units_ipFromHex as ipFromHex, units_ipToBinary as ipToBinary, units_ipToDecimal as ipToDecimal, units_ipToDecimalCidr as ipToDecimalCidr, units_ipToHex as ipToHex, units_ipToOctal as ipToOctal, units_isValid as isValid, units_isValidCidr as isValidCidr, units_isValidIp as isValidIp, units_isValidIpv4 as isValidIpv4, units_marginToMarkup as marginToMarkup, units_markupToMargin as markupToMargin, units_octalToPermissions as octalToPermissions, units_parseFileSize as parseFileSize, units_parseInput as parseInput, units_parseNumberString as parseNumberString, units_parseSemver as parseSemver, units_permissionsToChmod as permissionsToChmod, units_permissionsToOctal as permissionsToOctal, units_permissionsToSymbolic as permissionsToSymbolic, units_ptToPx as ptToPx, units_pxToAll as pxToAll, units_pxToViewport as pxToViewport, units_remToPx as remToPx, units_satisfiesRange as satisfiesRange, units_scaleByHeight as scaleByHeight, units_scaleByWidth as scaleByWidth, units_sortVersions as sortVersions, units_splitSubnet as splitSubnet, units_symbolicToPermissions as symbolicToPermissions, units_validateBarcode as validateBarcode, units_validateCardNumber as validateCardNumber, units_validateIban as validateIban, units_validateIsbn as validateIsbn, units_viewportToPx as viewportToPx };
1023
+ export { type units_AmortizationRow as AmortizationRow, type units_AprApyDirection as AprApyDirection, type units_AprApyResult as AprApyResult, type units_AspectRatioResult as AspectRatioResult, units_BASE_LABELS as BASE_LABELS, units_BASE_PREFIXES as BASE_PREFIXES, units_BYTE_UNITS as BYTE_UNITS, type units_BarcodeFormat as BarcodeFormat, type units_BarcodeValidationResult as BarcodeValidationResult, type units_BaseConvertResult as BaseConvertResult, type units_BreakEvenInput as BreakEvenInput, type units_BreakEvenResult as BreakEvenResult, type units_ByteConvertResult as ByteConvertResult, type units_ByteUnit as ByteUnit, units_COMMON_CURRENCIES as COMMON_CURRENCIES, units_COMMON_LOCALES as COMMON_LOCALES, units_COMMON_PERMISSIONS as COMMON_PERMISSIONS, units_COMMON_RATIOS as COMMON_RATIOS, units_COMMON_SIZES as COMMON_SIZES, units_COMMON_TAX_RATES as COMMON_TAX_RATES, units_COMMON_TIP_PERCENTAGES as COMMON_TIP_PERCENTAGES, units_COMMON_VIEWPORTS as COMMON_VIEWPORTS, type units_CardValidationResult as CardValidationResult, type units_CashBreakdownResult as CashBreakdownResult, type units_CashChangeResult as CashChangeResult, type units_CashDenominationItem as CashDenominationItem, type units_CdMaturityResult as CdMaturityResult, type units_CompareUnitPricesResult as CompareUnitPricesResult, type units_CompoundInterestResult as CompoundInterestResult, type units_CompoundYearRow as CompoundYearRow, type units_Dimensions as Dimensions, type units_DiscountField as DiscountField, type units_DiscountInput as DiscountInput, type units_DiscountResult as DiscountResult, type units_EmiResult as EmiResult, type units_EmiTenureUnit as EmiTenureUnit, type units_EmiYearlyBreakdownRow as EmiYearlyBreakdownRow, type units_FilePermissions as FilePermissions, type units_FormatOptions as FormatOptions, type units_IbanValidationResult as IbanValidationResult, type units_IpConversion as IpConversion, type units_IsbnFormat as IsbnFormat, type units_IsbnResult as IsbnResult, type units_LoanResult as LoanResult, type units_MarginMarkupField as MarginMarkupField, type units_MarginMarkupInput as MarginMarkupInput, type units_MarginMarkupResult as MarginMarkupResult, type units_NotationStyle as NotationStyle, type units_NumberBase as NumberBase, type units_PaybackPeriodInput as PaybackPeriodInput, type units_PaybackPeriodResult as PaybackPeriodResult, type units_PercentChangeDirection as PercentChangeDirection, type units_PercentageChangeResult as PercentageChangeResult, type units_Permission as Permission, type units_PxConvertResult as PxConvertResult, type units_RoiInput as RoiInput, type units_RoiResult as RoiResult, type units_RuleOf72Direction as RuleOf72Direction, type units_RuleOf72Result as RuleOf72Result, type units_SavingsGoalInput as SavingsGoalInput, type units_SavingsGoalMode as SavingsGoalMode, type units_SavingsGoalResult as SavingsGoalResult, type units_SemverVersion as SemverVersion, type units_SimpleInterestResult as SimpleInterestResult, type units_SubnetInfo as SubnetInfo, type units_SuccessiveDiscountResult as SuccessiveDiscountResult, type units_SuccessiveDiscountStep as SuccessiveDiscountStep, type units_TaxDirection as TaxDirection, type units_TaxResult as TaxResult, type units_TimeValueDirection as TimeValueDirection, type units_TimeValueResult as TimeValueResult, type units_TipSplitResult as TipSplitResult, units_USD_DENOMINATIONS as USD_DENOMINATIONS, type units_UnitPriceItem as UnitPriceItem, type units_UnitPriceResult as UnitPriceResult, type units_VideoBitrateInput as VideoBitrateInput, type units_VideoBitrateMode as VideoBitrateMode, type units_VideoBitrateResult as VideoBitrateResult, type units_ViewportConvertResult as ViewportConvertResult, units_applySuccessiveDiscounts as applySuccessiveDiscounts, units_autoFormat as autoFormat, units_bumpVersion as bumpVersion, units_calcAspectRatio as calcAspectRatio, units_calcSubnet as calcSubnet, units_calculateBreakEven as calculateBreakEven, units_calculateCashBreakdown as calculateCashBreakdown, units_calculateCdMaturity as calculateCdMaturity, units_calculateChange as calculateChange, units_calculateCompoundInterest as calculateCompoundInterest, units_calculateDiscount as calculateDiscount, units_calculateEmi as calculateEmi, units_calculateLoan as calculateLoan, units_calculateMarginMarkup as calculateMarginMarkup, units_calculatePaybackPeriod as calculatePaybackPeriod, units_calculatePercentageChange as calculatePercentageChange, units_calculateRoi as calculateRoi, units_calculateRuleOf72 as calculateRuleOf72, units_calculateSavingsGoal as calculateSavingsGoal, units_calculateSimpleInterest as calculateSimpleInterest, units_calculateTax as calculateTax, units_calculateTimeValue as calculateTimeValue, units_calculateTipSplit as calculateTipSplit, units_calculateVideoBitrate as calculateVideoBitrate, units_compareSemver as compareSemver, units_compareUnitPrices as compareUnitPrices, units_convert as convert, units_convertAprApy as convertAprApy, units_convertBytes as convertBytes, units_convertIp as convertIp, units_coverBox as coverBox, units_decimalToIp as decimalToIp, units_decimalToIpCidr as decimalToIpCidr, units_describePermissions as describePermissions, units_fitIntoBox as fitIntoBox, units_formatNumber as formatNumber, units_formatValue as formatValue, units_formatVwValue as formatVwValue, units_formatWithSeparator as formatWithSeparator, units_gcd as gcd, units_ipFromBinary as ipFromBinary, units_ipFromDecimal as ipFromDecimal, units_ipFromHex as ipFromHex, units_ipToBinary as ipToBinary, units_ipToDecimal as ipToDecimal, units_ipToDecimalCidr as ipToDecimalCidr, units_ipToHex as ipToHex, units_ipToOctal as ipToOctal, units_isValid as isValid, units_isValidCidr as isValidCidr, units_isValidIp as isValidIp, units_isValidIpv4 as isValidIpv4, units_marginToMarkup as marginToMarkup, units_markupToMargin as markupToMargin, units_octalToPermissions as octalToPermissions, units_parseFileSize as parseFileSize, units_parseInput as parseInput, units_parseNumberString as parseNumberString, units_parseSemver as parseSemver, units_permissionsToChmod as permissionsToChmod, units_permissionsToOctal as permissionsToOctal, units_permissionsToSymbolic as permissionsToSymbolic, units_ptToPx as ptToPx, units_pxToAll as pxToAll, units_pxToViewport as pxToViewport, units_remToPx as remToPx, units_satisfiesRange as satisfiesRange, units_scaleByHeight as scaleByHeight, units_scaleByWidth as scaleByWidth, units_sortVersions as sortVersions, units_splitSubnet as splitSubnet, units_symbolicToPermissions as symbolicToPermissions, units_validateBarcode as validateBarcode, units_validateCardNumber as validateCardNumber, units_validateIban as validateIban, units_validateIsbn as validateIsbn, units_viewportToPx as viewportToPx };
964
1024
  }
965
1025
 
966
- export { type RoiInput as $, type AmortizationRow as A, BASE_LABELS as B, COMMON_CURRENCIES as C, type CompoundYearRow as D, type Dimensions as E, type DiscountField as F, type DiscountInput as G, type DiscountResult as H, type EmiResult as I, type EmiTenureUnit as J, type EmiYearlyBreakdownRow as K, type FilePermissions as L, type FormatOptions as M, type IbanValidationResult as N, type IpConversion as O, type IsbnFormat as P, type IsbnResult as Q, type LoanResult as R, type MarginMarkupField as S, type MarginMarkupInput as T, type MarginMarkupResult as U, type NotationStyle as V, type NumberBase as W, type PercentChangeDirection as X, type PercentageChangeResult as Y, type Permission as Z, type PxConvertResult as _, type AprApyDirection as a, ipFromHex as a$, type RoiResult as a0, type RuleOf72Direction as a1, type RuleOf72Result as a2, type SavingsGoalInput as a3, type SavingsGoalMode as a4, type SavingsGoalResult as a5, type SemverVersion as a6, type SimpleInterestResult as a7, type SubnetInfo as a8, type SuccessiveDiscountResult as a9, calculatePercentageChange as aA, calculateRoi as aB, calculateRuleOf72 as aC, calculateSavingsGoal as aD, calculateSimpleInterest as aE, calculateTax as aF, calculateTimeValue as aG, calculateTipSplit as aH, calculateVideoBitrate as aI, compareSemver as aJ, compareUnitPrices as aK, convert as aL, convertAprApy as aM, convertBytes as aN, convertIp as aO, coverBox as aP, decimalToIp as aQ, decimalToIpCidr as aR, describePermissions as aS, fitIntoBox as aT, formatNumber as aU, formatValue as aV, formatVwValue as aW, formatWithSeparator as aX, gcd as aY, ipFromBinary as aZ, ipFromDecimal as a_, type SuccessiveDiscountStep as aa, type TaxDirection as ab, type TaxResult as ac, type TimeValueDirection as ad, type TimeValueResult as ae, type TipSplitResult as af, USD_DENOMINATIONS as ag, type UnitPriceItem as ah, type UnitPriceResult as ai, type VideoBitrateInput as aj, type VideoBitrateMode as ak, type VideoBitrateResult as al, type ViewportConvertResult as am, applySuccessiveDiscounts as an, autoFormat as ao, bumpVersion as ap, calcAspectRatio as aq, calcSubnet as ar, calculateBreakEven as as, calculateCashBreakdown as at, calculateChange as au, calculateCompoundInterest as av, calculateDiscount as aw, calculateEmi as ax, calculateLoan as ay, calculateMarginMarkup as az, type AprApyResult as b, ipToBinary as b0, ipToDecimal as b1, ipToDecimalCidr as b2, ipToHex as b3, ipToOctal as b4, isValid as b5, isValidCidr as b6, isValidIp as b7, isValidIpv4 as b8, marginToMarkup as b9, markupToMargin as ba, octalToPermissions as bb, parseFileSize as bc, parseInput as bd, parseNumberString as be, parseSemver as bf, permissionsToChmod as bg, permissionsToOctal as bh, permissionsToSymbolic as bi, ptToPx as bj, pxToAll as bk, pxToViewport as bl, remToPx as bm, satisfiesRange as bn, scaleByHeight as bo, scaleByWidth as bp, sortVersions as bq, splitSubnet as br, symbolicToPermissions as bs, validateBarcode as bt, validateCardNumber as bu, validateIban as bv, validateIsbn as bw, viewportToPx as bx, type AspectRatioResult as c, BASE_PREFIXES as d, BYTE_UNITS as e, type BarcodeFormat as f, type BarcodeValidationResult as g, type BaseConvertResult as h, type BreakEvenInput as i, type BreakEvenResult as j, type ByteConvertResult as k, type ByteUnit as l, COMMON_LOCALES as m, COMMON_PERMISSIONS as n, COMMON_RATIOS as o, COMMON_SIZES as p, COMMON_TAX_RATES as q, COMMON_TIP_PERCENTAGES as r, COMMON_VIEWPORTS as s, type CardValidationResult as t, units as u, type CashBreakdownResult as v, type CashChangeResult as w, type CashDenominationItem as x, type CompareUnitPricesResult as y, type CompoundInterestResult as z };
1026
+ export { type PercentageChangeResult as $, type AmortizationRow as A, BASE_LABELS as B, COMMON_CURRENCIES as C, type CompoundInterestResult as D, type CompoundYearRow as E, type Dimensions as F, type DiscountField as G, type DiscountInput as H, type DiscountResult as I, type EmiResult as J, type EmiTenureUnit as K, type EmiYearlyBreakdownRow as L, type FilePermissions as M, type FormatOptions as N, type IbanValidationResult as O, type IpConversion as P, type IsbnFormat as Q, type IsbnResult as R, type LoanResult as S, type MarginMarkupField as T, type MarginMarkupInput as U, type MarginMarkupResult as V, type NotationStyle as W, type NumberBase as X, type PaybackPeriodInput as Y, type PaybackPeriodResult as Z, type PercentChangeDirection as _, type AprApyDirection as a, formatVwValue as a$, type Permission as a0, type PxConvertResult as a1, type RoiInput as a2, type RoiResult as a3, type RuleOf72Direction as a4, type RuleOf72Result as a5, type SavingsGoalInput as a6, type SavingsGoalMode as a7, type SavingsGoalResult as a8, type SemverVersion as a9, calculateDiscount as aA, calculateEmi as aB, calculateLoan as aC, calculateMarginMarkup as aD, calculatePaybackPeriod as aE, calculatePercentageChange as aF, calculateRoi as aG, calculateRuleOf72 as aH, calculateSavingsGoal as aI, calculateSimpleInterest as aJ, calculateTax as aK, calculateTimeValue as aL, calculateTipSplit as aM, calculateVideoBitrate as aN, compareSemver as aO, compareUnitPrices as aP, convert as aQ, convertAprApy as aR, convertBytes as aS, convertIp as aT, coverBox as aU, decimalToIp as aV, decimalToIpCidr as aW, describePermissions as aX, fitIntoBox as aY, formatNumber as aZ, formatValue as a_, type SimpleInterestResult as aa, type SubnetInfo as ab, type SuccessiveDiscountResult as ac, type SuccessiveDiscountStep as ad, type TaxDirection as ae, type TaxResult as af, type TimeValueDirection as ag, type TimeValueResult as ah, type TipSplitResult as ai, USD_DENOMINATIONS as aj, type UnitPriceItem as ak, type UnitPriceResult as al, type VideoBitrateInput as am, type VideoBitrateMode as an, type VideoBitrateResult as ao, type ViewportConvertResult as ap, applySuccessiveDiscounts as aq, autoFormat as ar, bumpVersion as as, calcAspectRatio as at, calcSubnet as au, calculateBreakEven as av, calculateCashBreakdown as aw, calculateCdMaturity as ax, calculateChange as ay, calculateCompoundInterest as az, type AprApyResult as b, formatWithSeparator as b0, gcd as b1, ipFromBinary as b2, ipFromDecimal as b3, ipFromHex as b4, ipToBinary as b5, ipToDecimal as b6, ipToDecimalCidr as b7, ipToHex as b8, ipToOctal as b9, validateIban as bA, validateIsbn as bB, viewportToPx as bC, isValid as ba, isValidCidr as bb, isValidIp as bc, isValidIpv4 as bd, marginToMarkup as be, markupToMargin as bf, octalToPermissions as bg, parseFileSize as bh, parseInput as bi, parseNumberString as bj, parseSemver as bk, permissionsToChmod as bl, permissionsToOctal as bm, permissionsToSymbolic as bn, ptToPx as bo, pxToAll as bp, pxToViewport as bq, remToPx as br, satisfiesRange as bs, scaleByHeight as bt, scaleByWidth as bu, sortVersions as bv, splitSubnet as bw, symbolicToPermissions as bx, validateBarcode as by, validateCardNumber as bz, type AspectRatioResult as c, BASE_PREFIXES as d, BYTE_UNITS as e, type BarcodeFormat as f, type BarcodeValidationResult as g, type BaseConvertResult as h, type BreakEvenInput as i, type BreakEvenResult as j, type ByteConvertResult as k, type ByteUnit as l, COMMON_LOCALES as m, COMMON_PERMISSIONS as n, COMMON_RATIOS as o, COMMON_SIZES as p, COMMON_TAX_RATES as q, COMMON_TIP_PERCENTAGES as r, COMMON_VIEWPORTS as s, type CardValidationResult as t, units as u, type CashBreakdownResult as v, type CashChangeResult as w, type CashDenominationItem as x, type CdMaturityResult as y, type CompareUnitPricesResult as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@utilix-tech/sdk",
3
- "version": "0.43.0",
3
+ "version": "0.45.0",
4
4
  "description": "154+ developer utility tools for Node.js: JSON, encoding, hashing, color, CSS, network and more. Runs locally, no API key required.",
5
5
  "author": "Utilix <hello@utilix.tech>",
6
6
  "license": "MIT",