Skip to main content

How to structure amount and date calculations in Pipefy

  • Nov 23, 2026 8:16 PM UTC
  • 0 replies
  • 2 views
vinicius.pereira
Community Manager

👤 For process owners and teams that handle requests
🔐 Formulas on Business, Enterprise, and Unlimited. Advanced SLA rules on all plans.
🎯 For anyone who needs reliable amounts and deadlines for the next step

 

A purchase reaches approval late Friday. The approver works out the total by hand from the quantity and unit price. When setting the deadline, some team members count every hour, while others count only working hours.

By the end, you’ll know when to calculate the total, how to set the due date, and what to test before using those results to approve a purchase.

 

What you will learn:

 

Decide what the result needs to support

Before choosing a formula, ask what someone needs to know to move the request forward. In purchasing, the estimated total helps determine who should approve the request. The due date tells that person when a response is expected.

On the card, use a Numeric field for quantity and Currency fields for the unit price and estimated total. If you also record the quote date, use a Date field for that information. Keep the response deadline in its own Due Date field. See when to use each type of field in Pipefy.

 

Choose when to calculate the amount

The Run a formula action performs the calculation when the automation’s event occurs and writes the result to the field you choose. Pick an event that happens once the inputs are available. In this example, entering the approval phase is an option if the quantity and unit price have already been checked. For more on the rule itself, see how events, conditions, and actions work in Pipefy.

Three units at R$120.00 each come to R$360.00 when all amounts are in the same currency. If the quantity is corrected to four before approval, expect R$480.00 when the recalculation runs. Decide which changes should trigger a new calculation. If the request has already been approved, agree on who reviews the new total and when it needs another approval.

 

If an input is missing, agree on who will supply it and wait for that information before using the total. Decide when zero is valid too, such as when an item is supplied at no charge.

 

See Automated formulas in the Help Center for the supported operations.

 

To practice choosing the event and action for a calculation, explore the Pipefy Process Automation Certification.

 

Choose between calculating a date and tracking a deadline

Start with the question you need the result to answer. These examples use dates without times.

  • What date is it due? If payment is due seven calendar days after October 5, expect October 12. The Help Center explains how to update a field using a relative date in calendar days.
  • How many days have passed? The difference between October 5 and October 12 is seven days. Use this output when the team needs to measure an interval.
  • Did the response arrive by the deadline? Comparing October 13 with an October 12 deadline returns false for that question. Use a date comparison when the team needs to know whether a condition was met.

If the commitment counts only working days and working hours, a pipe admin can use Apply SLA rules to define the work schedule, time zone, and holidays and write the result to a Due Date field. See the advanced SLA rules.

Say the purchase reaches approval at 4 p.m. Friday and the team has four working hours to respond. With working hours from 9 a.m. to 5 p.m., Monday through Friday, in the same time zone, one hour counts on Friday and three on Monday. Expect the request to be due at noon on Monday. If Monday is configured as a holiday, expect it to be due at noon on Tuesday.

 

To spot cards that have spent longer than expected in a stage, track the phase SLA. To see when a specific request needs a response, check its due date. If the team tracks other dates, make clear which field holds the response deadline.

 

Check the result before relying on it

Pick one calculation your team already does by hand. Write down the inputs, the rule, the event that runs it, and where the result should appear. Use test cards to compare the expected result with what was written to the card and the decision someone would make based on it.

  • Purchase total. Check for R$360.00 with three units and R$480.00 after you change the quantity to four and trigger the recalculation. Test a request with no quantity and confirm the team waits for the missing information before using the total.
  • Approval due date. Compare a request that reaches approval on Friday in a regular week with one where the following Monday is a holiday. Check that the due date shifts from Monday to Tuesday in the time zone you chose.

 

Before moving on, confirm that you understand:

☐ Which inputs must be complete and who supplies missing information.

☐ Which event calculates or recalculates the result and which field holds it.

☐ When to count calendar days and when to use the working calendar.

☐ How to check the result for a typical case and an exception.

 

Ready to see where requests are waiting? → Phase SLAs in Pipefy to keep deadlines on track