# Math Operation

Math operation function used to calculate or score something. For an example, If we want to give a score to a lead based on their activities and responses to the marketing campaign, we can setup the math operation inside of a workflow for the system to take care of the math operations.

![](https://3652255517-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSpDxRsrRdNpxcuWtIMiA%2Fuploads%2Fgit-blob-37c80746b976f24abf42e6cc9f7445fc2c100399%2F1.%20Math%20Operation.png?alt=media)

### Select Fields

In this field, you are provided with a few options to perform the math operation. Lets cover them one by one.

1. **Action Name -** You can name the operation or leave it blank. It would be helpful for you to identify what this workflow is about.\\

2. **Standard fields -** Can be used for the math operations around date. If you want to run an automation before x number of days before your client's birthday you can set up the automations accordingly.\\

3. **Custom Field -** Here you will see all of the custom fields you have created inside of your CRM. You can choose them to perform expected math operation.

![](https://3652255517-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSpDxRsrRdNpxcuWtIMiA%2Fuploads%2Fgit-blob-5895df81f5d6fda928b2d42d7f4931a05076a5c1%2F2%20Math%20Operation%20Select%20Fields.png?alt=media)

## Date Of Birth Operation

With this operation, you can setup a workflow actions to perform before or after a few days of the birthday. You can give birthday discount to your client and start sending the campaign a few days before their birthday.

![](https://3652255517-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSpDxRsrRdNpxcuWtIMiA%2Fuploads%2Fgit-blob-cfa84c3c413ef4737ab660e2dead19e40b1008e0%2F5%20Operations%20Days%20Months%20Years.png?alt=media)

**Days -** Enter the number of Days as per your requirements.

**Months -** Enter the number of Months as per your requirements.

**Years -** Enter the number of years as per your requirements.

## Operations

From the dropdown menu shown in the image below, you can choose the type of math operation you would like the system to perform.

![](https://3652255517-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSpDxRsrRdNpxcuWtIMiA%2Fuploads%2Fgit-blob-d0186949131e8111ff7844ad3771433fc7eea758%2F4.%20Operator%20Add%20Subtract%20Operations.png?alt=media)

**Add -** Use this to for the addition.

**Divide -** Use this to perform mathematical division.

**Multiply -** Choose this to perform multiplication.

**Subtract -** Choose this when you have to perform subtraction.

## Value

Here you will enter the value as per the objective of the math operation.

![](https://3652255517-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSpDxRsrRdNpxcuWtIMiA%2Fuploads%2Fgit-blob-148cff882d4aa786081f249216a25312e0019207%2F9%20Value.png?alt=media)

### Custom Value

This icon will allow you to choose the custom values you have created inside of your system.

![](https://3652255517-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSpDxRsrRdNpxcuWtIMiA%2Fuploads%2Fgit-blob-f42b75ab2baadebece5c937a3a60d6cbe97a75ce%2F6%20Custom%20Values.png?alt=media)

### Delete Operation

Use this to delete one of the operation you have created.

![](https://3652255517-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSpDxRsrRdNpxcuWtIMiA%2Fuploads%2Fgit-blob-2761850c3b7b860821440efdf0763389c6dccba6%2F7%20Delete%20Operator.png?alt=media)

### Add Operator

If you need to create multiple operations based on one or more conditions you can use "Add Operator" option to do so.

![](https://3652255517-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSpDxRsrRdNpxcuWtIMiA%2Fuploads%2Fgit-blob-3bd610830908063d824219802e2f271d4a50e20b%2F8%20Add%20Operator.png?alt=media)

## Update Field

Here from the dropdown menu, you can select the field that is expected to be updated after performing math operation.

![](https://3652255517-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSpDxRsrRdNpxcuWtIMiA%2Fuploads%2Fgit-blob-c0c0f318c504314a2f999bb4c33ba577970747b0%2F3%20Update%20Field.png?alt=media)
