Complex Payoffs

Complex payoffs are based on formulas that are applied while computing interest rates for complex loans and constant maturity swap payoffs.

The formula comprises multiple underlying reference rates, factors, and spreads that define a floating rate specification. SAP Financial Services Data Management helps you to represent complex payoff formulae involving multiple rates, spreads, and factors for interest computation.

Data Model

The formula for complex payoffs can be stored in the Reference Rate Formula attribute in the Floating Rate Specification entity. The grammar for complex formulae is specified and covers the following operations:
  1. Addition (+)
  2. Subtraction (-)
  3. Multiplication (*)
  4. Division (/)
  5. Floor
  6. Cap
  7. Abs
  8. If-Then-Else

The (extendable) complex formula grammar is as follows:

Expr
= Term "+" Expr  
/ Term "-" Expr
/ Term 
/ "if" BoolExpr "then" Expr "else" Expr

BoolExpr = BoolTerm "or" BoolTerm  
/ BoolTerm

BoolTerm = BoolAtom "and" BoolTerm  
/ BoolAtom

BoolAtom = Expr _ "<" Expr  
/ Expr "<=" Expr
/ Expr ">=" Expr
/ Expr ">" Expr
/ Expr "=" Expr
/ "(" BoolExpr ")"
/ "not" BoolExpr

Term
= Atom "*" Expr
| Atom "/" Expr
| Atom

Atom
= Var
| Number
| "(" Expr ")
| "Floor" "(" Expr "," Expr ")"
| "Cap" "(" Expr "," Expr ")"
| "Abs" "(" Expr ")"

Var
= "\"" [A-Za-z_0-9]+ "\""

Number
= "-"? [0-9]+ (".")? [0-9]*

Example

The following is an example of a complex formula as per the above grammar:
Cap(Floor("10Y-EUR-CMS"*2,2)+"10Y-GBP-CMS",4.37)

More Information

For more information, see the related entities and their definitions in the data model represented in SAP PowerDesigner.