Professional Documents
Culture Documents
EIR DOC v1
EIR DOC v1
It starts with the CUR_NET_RATE in the instrument record, and iteratively calculates EIR to a
precision of 0.000001. Pseudo code follows:
Step-1:
Initial Value:
EIR = Current Net Rate
Delta = 0.0
Total MV = 0
Total Derivative = 0
Step-2:
Loop through each cash flow and calculate Total MV, Total Derivative. At the end of loop Delta
is calculated. These will be calculated for each iteration.
Conditions for iteration: absolute of Delta > 0.000001 and Iteration > Max Iterations. If Delta
goes below 0.000001 or Max Iteration of 500 is reached, iteration stops.
Formula:
C. After loop through the cash flow ends, delta is calculated where Total MV and Total
Derivative is used.
, ICF = First
Interest Cash Flow (FE 430).
Step-3:
If absolute of delta > 0.000001 and Max iteration < 500, engine moves to next iteration, and
Total MV, Total Derivative, Delta and EIR gets calculated again as mentioned in Step-2.
Note:
Payment per year is calculated as below:
If Payment Frequency Multiplier is DAY then = 365.0 / Payment Frequency, If Payment
Frequency Multiplier is MONTH then = 12.0 / Payment Frequency.
If Payment Frequency Multiplier is YEAR then = 1.0 / Payment Frequency.
Where Payment Frequency is data given in PMT_FREQ in Instrument record