Apr Module
calculating the APR according to various country-specific regulations
Types and nested modules
Type/Module | Description |
APR as in FCA CONC App 1.2.6 |
|
the calculation method used to determine the APR |
|
details of an advance or a payment |
|
whether a transfer is an advance or a payment |
Functions and values
Function or value |
Description
|
Full Usage:
annualPercentageRate unitPeriodRate unitPeriodsPerYear
Parameters:
decimal
unitPeriodsPerYear : decimal
Returns: decimal
|
basic calculation to determine the APR
|
Full Usage:
calculate method advanceValue advanceDate transfers
Parameters:
CalculationMethod
advanceValue : int64<MeasureProduct<Cent, MeasureOne>>
advanceDate : Date
transfers : Transfer array
Returns: Solution
|
calculates the APR to a given precision for a single-advance transaction where the consummation date, first finance-charge earned date and advance date are all the same
|
Full Usage:
roughUnitPeriodRate principal interestTotal paymentCount
Parameters:
decimal
interestTotal : decimal
paymentCount : decimal
Returns: decimal
|
an approximation of the unit-period equivalent of the APR
|
Full Usage:
toPercent aprMethod aprSolution
Parameters:
CalculationMethod
aprSolution : Solution
Returns: Percent
|
converts an APR solution to a percentage, if possible
|
Full Usage:
ukUnitPeriodRate unitPeriod apr
Parameters:
UnitPeriod
apr : Percent
Returns: Percent
|
calculates the APR rate for the specified unit-period as per UK regulation
|