Example: Term To Date
Converts a given set of terms of cash flows into dates referencing a given start date.
The configuration allows you to choose between a default approach and an approach that applies different logic to distinguish between pattern items that are of either balance type (cumulative factor/amount values) or movement type (delta factors/amounts).
The examples below are both for patterns of type MOV (delta) and of type BAL (cumulative).
Input Data with Pattern MOV (Delta) Values
| Start Date | Contract ID | Pattern KF Type | Period Unit | Period To |
|---|---|---|---|---|
| 2019-01-01 | A | MOV (Delta) | 6 | 1 |
| 2019-01-01 | A | MOV (Delta) | 6 | 2 |
| Start Date | Contract ID | Pattern KF Type | Period Unit | Period To |
|---|---|---|---|---|
| 2019-01-06 | B | MOV (Delta) | 6 | 1 |
| 2019-01-06 | B | MOV (Delta) | 6 | 2 |
| Start Date | Contract ID | Pattern KF Type | Period Unit | Period To |
|---|---|---|---|---|
| 2019-01-01 | C | MOV (Delta) | 6 | 1 |
| 2019-01-01 | C | MOV (Delta) | 6 | 2 |
| 2019-01-01 | C | MOV (Delta) | 6 | 3 |
| 2019-01-01 | C | MOV (Delta) | 6 | 4 |
Flow Modeling Configuration
| Rule | Description | Rule Type | State | Rule Grouping | Rule Ordering | Selection |
|---|---|---|---|---|---|---|
| TTD | Term To Date | Term To Date | Active |
| Line | *Line Granularity | *Period Type | *Start Date | *Date Determinant | *Day of Month | *Period | *Value Type | *Result Date |
|---|---|---|---|---|---|---|---|---|
| 1 | Contract ID | Monthly/Day of Period | Start Date | End of Period | BLANK/25 | Period To | Pattern Key Figure Type | Result Date |
Key Configuration Description
| Field | Meaning | Notes |
|---|---|---|
| Line | Identifier of the line | Must be unique |
| Line Granularity | Determines the size of each partition of data | Mandatory input that has to be inserted in the Granularity section of the Signature tab |
| Period Type | Determines the final pattern structure (for example, monthly or quarterly) | Mandatory input |
| Start Date | Starting date to compute the day count | Mandatory input |
| Date Determinant | Specifies how the date is determined | Mandatory input.
Codes:
|
| Day of Month | Determines the result date if Date Determinant is set to Day of Month | |
| Period To | Day count of the starting pattern for the cash flow | Mandatory input |
| Value Type | Can have either the value “MOV” or “BAL”, and determines which value type the cash flow item is comprised of. | Ensure that the field contains these two values only. This is important because different logic is applied for movements / balance types on the first date of the resulting pattern. |
| Result Date | The function writes the new date to this field. | Mandatory output |
Expected Output
Expected Output for Input MOV (Delta Values) – Period Type = Monthly
| Start Date | Contract ID | Pattern Key Figure Type | Period To | Period Type | *Result Date |
|---|---|---|---|---|---|
| 2019-01-01 | A | MOV (Delta) | 1 | 6 | 2019-01-31 |
| 2019-01-01 | A | MOV (Delta) | 2 | 6 | 2019-02-28 |
| Start Date | Contract ID | Pattern Key Figure Type | Period To | Period Type | *Result Date |
|---|---|---|---|---|---|
| 2019-01-01 | B | MOV (Delta) | 1 | 6 | 2019-06-30 |
| 2019-01-01 | B | MOV (Delta) | 2 | 6 | 2019-07-31 |
| Start Date | Contract ID | Pattern Key Figure Type | Period To | Period Type | *Result Date |
|---|---|---|---|---|---|
| 2019-01-01 | C | MOV (Delta) | 1 | 6 | 2019-01-31 |
| 2019-01-01 | C | MOV (Delta) | 2 | 6 | 2019-02-28 |
| 2019-01-01 | C | MOV (Delta) | 3 | 6 | 2019-03-31 |
| 2019-01-01 | C | MOV (Delta) | 4 | 6 | 2019-04-30 |
Expected Output for Input MOV (Delta Values) – Period Type = Day of Period
| Start Date | Contract ID | Pattern Key Figure Type | Period To | Period Type | *Result Date |
|---|---|---|---|---|---|
| 2019-01-01 | A | MOV (Delta) | 1 | 6 | 2019-01-25 |
| 2019-01-01 | A | MOV (Delta) | 2 | 6 | 2019-02-25 |
| Start Date | Contract ID | Pattern Key Figure Type | Period To | Period Type | *Result Date |
|---|---|---|---|---|---|
| 2019-01-01 | B | MOV (Delta) | 1 | 6 | 2019-06-25 |
| 2019-01-01 | B | MOV (Delta) | 2 | 6 | 2019-07-25 |
| Start Date | Contract ID | Pattern Key Figure Type | Period To | Period Type | *Result Date |
|---|---|---|---|---|---|
| 2019-01-01 | C | MOV (Delta) | 1 | 6 | 2019-06-25 |
| 2019-01-01 | C | MOV (Delta) | 2 | 6 | 2019-07-25 |
| 2019-01-01 | C | MOV (Delta) | 3 | 6 | 2019-03-25 |
| 2019-01-01 | C | MOV (Delta) | 4 | 6 | 2019-04-25 |
Input Data with Pattern BAL (Cumulative) Values
| Start Date | Contract ID | Pattern Key Figure Type | Period Unit | Period To |
|---|---|---|---|---|
| 2019-01-01 | D | BAL (cumulative) | 7 | 0 |
| 2019-01-01 | D | BAL (cumulative) | 7 | 1 |
| 2019-02-01 | E | BAL (cumulative) | 11 | 0 |
| 2019-02-01 | E | BAL (cumulative) | 11 | 1 |
| 2019-02-01 | E | BAL (cumulative) | 11 | 2 |
| 2019-02-01 | E | BAL (cumulative) | 11 | 3 |
Flow Modeling Configuration
| Line | *Line Granularity | *Period Type | *Start Date | *Date Determinant | *Day of Month | *Period | *Value Type | *Result Date |
|---|---|---|---|---|---|---|---|---|
| 1 | Contract ID | Quarterly | Start Date | End of Period | Period To | Pattern Key Figure Type | Result Date |
Expected Output for Input BAL (Cumulative Values) – Period Type = Quarterly
| Start Date | Contract ID | Pattern Key Figure Type | Period Unit | Period To | Result Date |
|---|---|---|---|---|---|
| 2019-01-01 | D | BAL (cumulative) | 7 | 0 | 2019-01-01 |
| 2019-01-01 | D | BAL (cumulative) | 7 | 1 | 2019-01-31 |
| 2019-02-01 | E | BAL (cumulative) | 11 | 0 | 2019-02-01 |
| 2019-02-01 | E | BAL (cumulative) | 11 | 1 | 2019-03-31 |
| 2019-02-01 | E | BAL (cumulative) | 11 | 2 | 2019-06-30 |
| 2019-02-01 | E | BAL (cumulative) | 11 | 3 | 2019-09-30 |