Interest Module
methods for calculating interest and unambiguously expressing interest rates, as well as enforcing regulatory caps on interest chargeable
Types and nested modules
Type/Module | Description |
Functions and values
Function or value | Description |
Full Usage:
calculate balance dailyInterestCap interestRounding dailyRates
Parameters:
int64<MeasureProduct<Cent, MeasureOne>>
dailyInterestCap : Amount voption
interestRounding : Rounding
dailyRates : DailyRate array
Returns: decimal<MeasureProduct<Cent, MeasureOne>>
|
|
Full Usage:
calculateRebate principal payments apr settlementPeriod settlementPartPeriod unitPeriod paymentRounding
Parameters:
int64<MeasureProduct<Cent, MeasureOne>>
payments : (int * int64<MeasureProduct<Cent, MeasureOne>>) array
apr : Percent
settlementPeriod : int
settlementPartPeriod : Fraction
unitPeriod : UnitPeriod
paymentRounding : Rounding
Returns: int64<MeasureProduct<Cent, MeasureOne>>
|
|
Full Usage:
dailyRates startDate isSettledWithinGracePeriod standardRate promotionalRates fromDay toDay
Parameters:
Date
isSettledWithinGracePeriod : bool
standardRate : Rate
promotionalRates : PromotionalRate array
fromDay : int<MeasureProduct<OffsetDay, MeasureOne>>
toDay : int<MeasureProduct<OffsetDay, MeasureOne>>
Returns: DailyRate[]
|
|
Full Usage:
ignoreFractionalCent i
Parameters:
decimal<MeasureProduct<Cent, MeasureOne>>
Returns: decimal<MeasureProduct<Cent, MeasureOne>>
|