Skip to content

Math Operation action

The Math Operation workflow action in Stack is a powerful tool for automating calculations within your business workflows. Whether you’re calculating lead scores, setting renewal reminders, or determining project deadlines, this feature simplifies manual processes, enhances accuracy, and boosts overall workflow efficiency. This guide will walk you through the Math Operation action, its key benefits, configuration steps, use cases, and frequently asked questions to help you get started with confidence.

The Math Operation workflow action allows you to perform calculations directly within a workflow. You can add, subtract, multiply, or divide numeric fields and update them automatically based on specific actions or triggers. For date fields, you can add or subtract days, months, or years, making it easy to automate time-sensitive processes like reminders or scheduling.

For example, a subscription-based service can use the Math Operation action to calculate renewal dates by adding a specific duration to the start date, ensuring customers receive timely reminders.

Key Benefits of Math Operation Workflow Action

Section titled “Key Benefits of Math Operation Workflow Action”

Here are some of the key advantages of using this feature in your workflows:

  • Automation & Efficiency: Eliminates manual calculations, reducing errors and saving time while streamlining repetitive tasks like lead scoring, commission calculations, and deadline management.
  • Customization & Integration: Supports custom fields and values, allowing flexible configurations while seamlessly working with other workflow actions and triggers for advanced automation.
  • Accuracy & Scalability: Ensures precise updates to numeric, monetary, and date fields while handling large data volumes without additional manual effort, maintaining consistent performance.

Configuring Math Operation Workflow Action

Section titled “Configuring Math Operation Workflow Action”

Let’s learn how to set up the Math Operation action by choosing the right field, applying calculations, and updating values. Leverage dynamic fields, multiple operations, and custom values to keep your calculations accurate and automated.

By default, the action is named “Math Operation,” but you can rename it for clarity. Use a descriptive name to make workflows easier to follow. A clear name helps quickly identify the action, especially in complex workflows.

After naming the action, the next step is selecting the field where the calculation will be applied. Clicking the Select Field dropdown presents three options:

  • Date Fields: Perform date-based calculations for scheduling, reminders, or age verification using system-generated date fields like Current Date and Date of Birth.
    • Current Date: Represents the present date when the workflow runs. Useful for operations like calculating deadlines or scheduling future events.
    • Date of Birth: Refers to a contact’s recorded birth date. Often used for age verification, birthday reminders, or calculating anniversaries.
  • Custom Fields: These are fields specific to your CRM setup, such as Policy Expiry Date or Contract Start Date. Useful for setting up automated renewal reminders or contract extensions.
  • Custom Values: Manually input a static value instead of selecting a stored field. Useful for applying fixed calculations, such as adding a specific number of days to a date field.

Once you’ve selected a field, define the type of calculation you want to apply:

  • Date Fields: Add or subtract days, months, or years to set up automated reminders or scheduling adjustments.
  • Numeric and Monetary Fields: Perform operations like Addition, Subtraction, Multiplication, or Division to update values automatically.

After selecting the operation type, enter a numerical value for the calculation. You can input a static number manually or use the “+” and “-” icons to adjust the value as needed.

  • Tag Icon: Select dynamic values from custom fields instead of entering static numbers manually. This ensures calculations adapt to real-time data changes.
  • Delete Icon: Remove an operation if you no longer need it by clicking the trash bin icon. This feature helps keep calculations clean and accurate.

To add multiple math operations within a single action, use the Add Operator option. This feature is useful for performing a sequence of calculations, such as first adding a value and then multiplying the result. By clicking Add Operator, you can refine calculations without needing separate workflow actions.

The Update Field option determines where the result of the calculation will be stored. Ensure that the selected field matches the type of data being processed—numeric fields should be updated with numeric values, and date fields should store date-based calculations.

Q. Can I perform math operations on custom date fields?
Yes, you can perform addition or subtraction on custom date fields to automate time-sensitive tasks, such as reminders or scheduling.

Q. Are there any limitations on the range of values in math operations?
Numeric fields can store both positive and negative values, while monetary fields only accept values greater than or equal to zero. Negative values are not supported for date fields.

Q. Can I use Math Operation actions with If/Else conditions?
Absolutely! You can use the result of a Math Operation action in an If/Else condition to create dynamic workflows. For example, use calculated lead scores to route leads through different sales paths based on their engagement level.

The Math Operation action in Stack workflows automates calculations on numeric and date fields, streamlining business processes and decision-making. For instance, a gym can automatically update membership renewal dates by adding a year to current expiration dates, ensuring timely reminders and improved client retention.

  1. Gym Membership Renewal: Automatically update renewal dates, ensuring timely client reminders.
  2. Loan Amortization: Track remaining loan balances after each payment.
  3. Sales Commissions: Calculate commissions based on sales targets and rates.
  4. Lead Scoring: Increment scores with each lead interaction to prioritize follow-up.
  5. Project Deadlines: Calculate deadlines by adjusting project start dates.
  6. Subscription Expirations: Determine expiration dates by adding durations to activation dates.
  7. Customer Lifetime Value: Estimate by multiplying purchase value by frequency.
  8. Inventory Management: Track stock levels by subtracting sold items.
  9. Warranty Tracking: Determine warranty end dates by adding durations to purchase dates.
  10. Age Verification: Verify age by subtracting birthdate from the current date.
  11. Discounted Pricing: Calculate discounted prices during promotions.
  12. Sales Tax Calculation: Determine final prices by applying tax rates.
  13. Employee Performance Metrics: Evaluate performance using calculated metrics.
  14. Rental Property Management: Calculate late fees for overdue rent.
  15. Milestone Bonuses: Reward employees with bonuses based on performance.
  16. Product Profit Margin: Calculate profit margins for pricing decisions.
  17. Customer Segmentation: Segment customers by purchase frequency.
  18. Event Countdown: Display countdowns to upcoming events.
  19. Budget Tracking: Monitor funds by subtracting expenses.
  20. Interest Calculation: Calculate interest on accounts or loans.
  • Automation: Streamline repetitive calculations.
  • Accuracy: Minimize human error.
  • Customization: Use custom fields for tailored calculations.
  • Improved Decision-Making: Gain insights for strategic decisions.
  • Enhanced Lead Management: Use metrics in If/Else conditions for better lead routing.
  • Time-based Scheduling: Automate tasks using date calculations.
  • Flexibility: Perform various calculations on numeric and date fields.
  • Integration: Combine with other actions for dynamic processes.
  • Scalability: Handle growing data volumes efficiently.
  • Cost Savings: Reduce manual labor costs.
  1. Create or Select a Workflow: Start with a new or existing workflow.
  2. Add the Math Operation Action: In the workflow builder, select “Add Action” and choose “Math Operation”.
  3. Choose the Field to Update: Select the numeric or date field for the operation.
  4. Select the Operation: Choose addition, subtraction, multiplication, or division for numeric fields, and addition or subtraction of days, months, or years for date fields.
  5. Input the Operator: Enter the value or custom field as the operator.
  6. Update Field: Choose the field to update with the result.
  7. Save the Action: Click “Save” to apply the action.
  8. Activate the Workflow: Publish the workflow to execute the math operation automatically.
  9. Combine with Other Actions: Integrate with other actions and conditions for complex workflows.
  1. Lead Prioritization: Increment lead scores and segment using If/Else conditions.
  2. Subscription Renewal Reminders: Calculate renewal dates and trigger reminder emails.
  3. Sales Commission Calculation: Calculate commissions and notify sales reps.
  4. Project Deadline Tracking: Monitor deadlines and send reminders.
  5. Customer Loyalty Program: Update loyalty points and notify customers of rewards.
  • Numeric Fields: Store whole numbers or decimals for scores, quantities, etc.
  • Monetary Fields: Store currency values for prices, revenues, etc.
  • Date Fields: Store dates for events or deadlines.
  • Supported Operations: Add/Subtract days, months, or years.
  • Purpose: Perform calculations based on the current date.
  • Supported Operations: Add/Subtract days, months, or years.
  • Note: Negative values are not supported for Date or Current Date fields.
  • Monetary Fields: Ensure values do not go negative; use If/Else to set to zero if necessary.
  • Numeric Fields: Can store both positive and negative values.

Can I perform multiple math operations in a single workflow step? No, each Math Operation action performs a single operation. Use multiple actions for complex calculations.

How do I handle rounding errors or decimal precision? Systems typically handle precision automatically. Use custom logic for specific rounding needs.

Can I perform math operations on custom date fields? Yes, add or subtract days, months, or years to/from custom date fields.

Are there any limitations on my range of values? Monetary fields have a minimum value of 0; numeric fields can be positive or negative.

Can I use the result of a math operation in an If/Else condition? Yes, use calculated results in If/Else conditions for dynamic workflows.

Can math operations be performed using data from external sources? Some systems may allow data from external sources via custom fields or integrations.

Can I use Math Operation actions with other workflow actions and triggers? Yes, combine them for complex and tailored business processes.

Can't find what you need? Call or text +1 787 665-9212 or email [email protected].© Stack · Privacy · Terms