--- title: "Building Formulas" slug: "building-formulas" description: "Learn how to build Formulas in Decisions using the Formula Designer, including configuring input data, adding functions, writing formula expressions, testing results, and using saved Formulas in Flows, Rules, and mappings." updated: 2026-08-13T19:45:13Z published: 2026-08-13T19:45:13Z canonical: "documentation.decisions.com/building-formulas" --- > ## Documentation Index > Fetch the complete documentation index at: https://documentation.decisions.com/llms.txt > Use this file to discover all available pages before exploring further. # Building Formulas ## Overview Formulas are created in the Formula Designer and can be used to calculate, transform, or return values throughout the Decisions Platform. A Formula can use constants, variables, and functions to perform calculations in a format similar to spreadsheet formulas. The Formula Designer provides the tools needed to name the Formula, define optional input data, build the Formula expression, and validate the result. Functions can be selected from the Functions list or typed directly into the Formula Builder, where they auto-populate as they are entered. Input data is optional, but it can be used when the Formula needs to reference values passed from a Flow or another part of the platform. The Formula Builder also uses color indicators to identify functions, constants, and variables, making the expression easier to read and troubleshoot. --- ## Create a Formula Follow the next steps to create a Formula: ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/Create%20a%20Formula.png) 1. Provide a name for the Formula. A name is required for every Formula. 2. Use **Input Data** when the Formula needs to reference values created or passed in from a Flow. Input Data is optional. For more information about Input Data, see [Configure Input Data](/v10/docs/building-formulas#configure-input-data). 3. Enter the Formula in the Formula Builder. Functions can be added in either of the following ways: - Select a function from the **Functions** list. For more more information about functions, see [Function Glossary](/v10/docs/function-glossary). - Type the function directly in the Formula Builder. Functions auto-populate as they are entered. ### Formula Color Indicators The Formula Builder uses color indicators to identify different value types: ``` amordegrc(cost, purchaseDate, firstPeriod, salvage, period, rate, 10) ``` | Color | Description | Example | | --- | --- | --- | | Green | Function | amordegrc | | Black | Constant | 10 | | Purple | Variable | purchaseDate | ### Variable Data Types Variables require compatible data types. For example, a variable with a **Double** data type does not accept letters. To review the required data type for a function: 1. Open the **Functions** tab. 2. Select the function. 3. Click the **Help** icon. 4. Review the required input and data type information. ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/Function%20Info.png) ### Function Dependencies Some functions require another function or setting to work correctly. For example, functions that use lists may require one of the following: - The **Make Array** function. - The **Is List** setting enabled for the input data. ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/Formulas%20-%20Double%20Variables.png) ## Configure Input Data Use **Input Data** to define the values a Formula can receive and use during execution. 1. Do one of the following: - Click the **pencil** icon next to **Input Data** to open the Input Data screen. ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1785465510826.png) - If it is a new Formula, click the **plus** icon next to **Input Data** to open the Input Data screen. ![image-1785465365626](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1785465365626.png) 2. The Input Data screen follows the same configuration pattern used throughout Decisions for creating and managing data definitions. ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1785465169574.png) 1. The default data type is **Double**, because this type is commonly used with Formula functions. This can be changed to any standard Decisions data type or to a custom data type. 2. Enable **Is List** when the input must accept multiple values. This setting is required for certain functions that work with list-based data. 3. Enable **Can Be Null** when the input value may be empty or null. 3. Click the **Save** icon at the top bar. --- ## Feature Changes | Description | Version | Release | Developer Task | | --- | --- | --- | --- | | The Formula Designer UI has been updated to reflect the redesigned platform experience, including updated hover states. | 10.1 | August 2026 | [DT-047859] |