Calculate Periodic Funding/Liquidity Costs
This Calculation function is used to calculate periodic COF for each individual position and event, except those belonging to the COMMIT event type. For demonstration purposes, the COF are calculated for each month in the year 2020. However, in practice or real-life projects the function can be extended to calculate COF for an arbitrary period (for example, a day, a week or a quarter).
In the input function, the Collect Calculated FTP/LTP Rates function is used. The field Event Type is used to filter out data. By excluding COMMIT, the commitment event will not be calculated for COF.
For demonstration purposes, the following rules have been defined:
-
Rule R0 – Calculate Term Liquidity Spread calculates the term liquidity that is the margin of the (temporary) term liquidity premium less the base rate. In previous functions, positions are priced by two curves for the following rates:
-
Base Rate
-
Term Liquidity Premium
The result is again assigned to the same Term Liquidity Premium field.
-
-
Rule R1 – Calculate Funding/Liquidity Costs calculates the periodic interest according to the following:
-
Calculated FTP base rates
-
New calculated term liquidity spread
-
Periodic beginning balance amounts of products
-
Day count method
These interest amounts correspond exactly to the periodic cost of funds and cost of liquidity respectively.
-
-
Rule R2 – Sum Up FTP/LTP Rates calculates the total of the calculated FTP base rates, the term liquidity premiums, the contingent liquidity premiums, and so on. The total amount is then assigned to the FTP Rate [%] field. All numbers are percentages.
-
Rule R3 – Calculate Total Costs and Marginal Spreads calculates the total of the Cost of Funds and Cost of Liquidity. The total amount is then assigned to the FTP Amount [TC] field. The value in field NII Margin is also calculated as the difference between the FTP rate and the interest rate.
-
Rule R4 – Preparing Report Figures calculates additional fields that are used in dynamic reporting.