> For the complete documentation index, see [llms.txt](https://help.mypipeline.co.in/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.mypipeline.co.in/workflow-actions/workflow-action-math-operation.md).

# Workflow Action: Math Operation

The *Math Operation* action will allow you to make calculations based on what is in a particular field and update fields with the output. Follow this article for an overview of the Math Operation action.

1. **Numeric / Monetary Field Types**

* Navigate to the Operations drop-down and select the field that applies (add, divide, multiply, and subtract)

<figure><img src="https://2289191698-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSuWOLpO1autbQ39VpUFa%2Fuploads%2FlZJmIKkJtiHhUOrMzZG0%2Fimage.png?alt=media&amp;token=537c5005-af24-499c-9137-6d0fbd6de575" alt=""><figcaption></figcaption></figure>

**Please Note:** The Select field and Update Field can be the same or different, but it has to be of the **same field type**

* Next, enter the specific value   amount and select “Save Action”.

<figure><img src="https://2289191698-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSuWOLpO1autbQ39VpUFa%2Fuploads%2FBivhAmVhMUbDaGngYdc6%2Fimage.png?alt=media&amp;token=5048566e-8b27-43a7-98ff-b9069a1f42d2" alt=""><figcaption></figcaption></figure>

1. **Date Field Type**

* Under Operations click on the select field - Current date

<figure><img src="https://2289191698-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSuWOLpO1autbQ39VpUFa%2Fuploads%2F5tAs0GRt6JFqtYqGAY5A%2Fimage.png?alt=media&amp;token=3902f997-6c36-40e3-a6c6-9c2d35d29262" alt=""><figcaption></figcaption></figure>

* Add or subtract any days, months, and years to the current date or any date type field that apply
* Once done select the “Save Action” button

**Please Note:** If the output value is negative then it will be replaced with zero

**How does it work?**

1. Select field -> select any Numeric / Monetary / Date field as an Input

* -Only Numeric, Monetary, and Date field types are supported.

1. Operations -> select an operation and enter respective values

* -The Select field and Update Field have to be of the **same field type**.

1. Update field -> select any field to update it with the output value (field type should be same as "Select Field")

* -If the output value is negative then it will be replaced as zero.
