Product Formulas

Product formulas process relevant product origination inputs (such as income, age, assets, risk class, etc.) to calculate desired outputs (such as credit scores, interests, discounts, etc.).

Product formulas are linked to their parent products, enabling: automatic association with the correct product during formula import into the target environment, synchronized state management between formulas and their parent products, and automatic deletion of formulas when the associated product or product version is removed.

Basic Product Formulas

Product formulas allow you to create product-centric computations using a simple sentence-based user interface.

To write a product formula

  1. Enter the formula expression.
  2. Enter a formula name.
  3. Specify the source of each attribute you used in the formula expression expression (either an input, data set, or another formula):
    • input - This is a Lexicon Term value provided in the product origination journey at run-time. The input value must be set up in the journey through user input, service integration, or data query.
      There is an extensive dictionary of predefined lexicon terms available for each product template that you can choose from (Loan amount, Base Rate, Total Floor Area, etc). Alternatively, you can create new ones or reuse existing lexicon terms in the context of new product templates straight from the formula editor.
    • data set - At their most basic level, Product Data Sets map product origination inputs to secondary values (e.g.: map a driver's experience input to a risk coefficient output). More advanced data sets can use formulas or other data sets as inputs, creating multi-step path from the product origination journey inputs to the data set output.
    • formula - Just like data sets, you can use another formula as a source for a formula attribute.
HINT  

Both formulas and data sets are used to derive secondary values from inputs.

  • Formulas are useful when you can express this relationship through a mathematical computation, e.g.:
    risk coefficient = engine displacement * 0.002.
  • Data sets are useful when you need to define the relationship explicitly, e.g.:
    risk coefficient = (3 if engine displacement <= 1500) or (4.5 if engine displacement > 1500).
IMPORTANT!  
Follow these formatting rules for formulas:

1. Attribute names cannot have spaces;
2. Use simple mathematical operations (+, -, *, /, <, <=, >, >=).

Advanced Product Formulas

For complex calculations, you can use the Formula Editor to define product formulas that go beyond the basic expressions available in product templates. This allows you to take advantage of the advanced Business Formulas capabilities, such as multi-step logic, built-in functions, recursion, and formula testing across various scenarios.

Convert a Basic Product Formula into an Advanced Product Formula

You can use a basic product formula as a starting point for an advanced product formula. This will automatically convert your formula expression to the advanced format and create the corresponding input parameters and data sets.

IMPORTANT!  
Once you edit a formula in the advanced interface, its original expression is no longer visible or editable within the product template.

To convert and open a basic formula in the advanced editor:

  1. In the product template, locate the desired formula field.
  2. Click the fx drop-down button on the left side of the formula field.
  3. Select the name of the formula. This will replace the formula expression with the formula name in the formula field.
  4. Click the Edit button at the right side of the formula field.

This opens the formula in the Formula Editor where you can further edit it. You can access and further customize the Formula Inputs and Data Sets from the FintechOS Studio Business Formulas submenu.

Create an Advanced Product Formula from Scratch

To create an advanced product formula:

  1. In the product template, locate the desired formula field.
  2. Click the fx drop-down button on the left side of the formula field.
  3. Click + Create Formula.
  4. Select New Formula.
  5. Enter a name for the formula.
  6. Click Create Formula.

This opens the formula in the Formula Editor where you can further edit it. Use the Formula Inputs and Data Sets to define the arguments required by your formula.

Reuse a Product Formula Within the Same Product

A product formula can be reused across multiple components of the same product. For example, two different insurance coverages may share the same pricing calculation logic.

IMPORTANT!  
Editing a reused formula affects all its instances across the product.

To reuse a formula from the same product:

  1. In the product template, locate the desired formula field.
  2. Click the fx drop-down button on the left side of the formula field.
  3. Select an existing formula from the drop-down menu. This list includes all formulas defined in the current product.

Clone a Product Formula

If you wish to use one of the existing Business Formulas in your products, you can clone it. This creates a new, independent copy of the selected formula, allowing you to build formula templates that you can customize for various products.

IMPORTANT!  
The cloned business formula must be in the Active status.

To clone a business formula:

  1. In the product template, locate the desired formula field.
  2. Click the fx drop-down button on the left side of the formula field.
  3. Click + Create Formula.
  4. Select Clone Existing.
  5. Enter a new Formula Name.
  6. Use the Select Formula to Clone field to choose your source formula. This list includes formulas from both the current and other products.
  7. Click Clone Formula.

This opens the formula in the Formula Editor where you can further edit it. Use the Formula Inputs and Data Sets to configure the arguments used by your formula.