Example: Term Selection

Selects a specific term on a month-end basis from a cash flow taking into consideration which period type (monthly, quarterly, yearly) and day count convention (30/360 German, ACT/ACT) is set in the configuration.

In the example for this type of configuration, we run the function for three different patterns and for two types of target conversion (from days to months and from days to quarters). The output is a new pattern for the three contract IDs with a new periodicity.

Input Data

Start Date Contract ID Pattern KF Type Period Unit Period To Result Value
2019-01-01 A MOV (Delta) 3 30 EUR 30
2019-01-01 A MOV (Delta) 4 60 EUR 60
2019-01-01 A MOV (Delta) 2 90 EUR 90
2019-01-01 A MOV (Delta) 8 120 EUR 120
Start Date Contract ID Pattern KF Type Period Unit Period To Result Value
2019-01-01 B MOV (Delta) 4 30 EUR 30
2019-01-01 B MOV (Delta) 4 60 EUR 60
2019-01-01 B MOV (Delta) 4 90 EUR 90
Start Date Contract ID Pattern KF Type Period Unit Period To Result Value
2019-01-01 C MOV (Delta) 4 30 EUR 30
2019-01-01 C MOV (Delta) 4 60 EUR 60
2019-01-01 C MOV (Delta) 4 90 EUR 90
2019-01-01 C MOV (Delta) 4 120 EUR 120

Flow Modeling Configuration

Rules (Tab)
Rule Description Rule Type State Rule Grouping Rule Ordering Selection
TS Term Selection Term Selection Active      
Rule Line
Line Line Granularity Day Count Convention Start Date Period Type Value Type Period To Period To Result Period Unit Result
1 Contract ID German 30/60 Start Date Monthly/Quarterly   Period To Period To Result Period Unit Result

Key Configuration Description

Field Meaning Notes
Line Identifier of the line Must be unique
Line Granularity Determines the size of one partition of data Mandatory input that has to be inserted in the Granularity tab of the Signature section
Day Count Convention Day count convention used to determine the result period

Mandatory input.

The function manages the following conventions :
  • US 30/360
  • Actual/Actual
  • EU 30/360
  • German 30/360
Start Date Starting date to compute the day count Mandatory input
Period Type Determines the final pattern structure (for example, monthly or quarterly). Mandatory input
Period To Day count of the starting pattern for the cash flow  
Period To Result The system writes the period type of the output to this field. Mandatory output
Period Unit Result Period type of output data (for example, monthly or quarterly )

Mandatory input depending on the value that has been defined under Period Type.

The following values are possible:
  • 6 if Period To is in months
  • 11 if Period To indicates quarters
  • 7 if Period To indicates years

Expected Output

Expected Output for Period Type = Monthly

Start Date Contract ID Pattern KF Type Period To Period Unit Period To Result
2019-01-01 A MOV (Delta) 30 6 1
2019-01-01 A MOV (Delta) 60 6 2
2019-01-01 A MOV (Delta) 90 6 3
2019-01-01 A MOV (Delta) 120 6 4
Start Date Contract ID Pattern KF Type Period To Period Unit Period To Result
2019-01-01 B MOV (Delta) 30 6 1
2019-01-01 B MOV (Delta) 60 6 2
2019-01-01 B MOV (Delta) 90 6 3
Start Date Contract ID Pattern KF Type Period To Period Unit Period To Result
2019-01-01 C MOV (Delta) 30 6 1
2019-01-01 C MOV (Delta) 60 6 2
2019-01-01 C MOV (Delta) 90 6 3
2019-01-01 C MOV (Delta) 120 6 4

Expected Output for Period Type = Quarterly

Start Date Contract ID Pattern Key Figure Type Period To Period Unit Result Period To Result
2019-01-01 A MOV (Delta) 90 11 1
2018-01-01 A MOV (Delta) 120 11 2
Start Date Contract ID Pattern Key Figure Type Period To Period Unit Result Period To Result
2019-01-01 B MOV (Delta) 90 11 1
Start Date Contract ID Pattern Key Figure Type Period To Period Unit Result Period To Result
2019-01-01 C MOV (Delta) 90 11 1
2019-01-01 C MOV (Delta) 120 11 2