What it is and what it costs
Calculate works out a sum like price × quantity and saves the answer in a variable for the next steps. Money comes out exact to the cent. It is free: it uses no AI and no credits.
A formula can use numbers, {{variables}}, + - * / %, brackets and these functions: round, min, max, if, pow, days_between, add_days and today. Or pick Add up a list to total a list of items from an HTTP request or AI extract, each quantity times its price.
Add a Calculate step
- In the flow editor, add a Calculate step after the steps that fill in your numbers, such as Wait for reply.
- Under What to work out, pick A formula and type it, or press one under Start from an example. Press a variable under Your variables to add it to the formula.
- Type values under Try it with these values and check the Answer before you go on.
- Under Save the answer in, name the variable, like total. To send it nicely, pick a Ready-to-send copy format (money uses your business currency) and Save the copy in a second variable, like total_text.
- Put it in a message: "Your total is {{total_text}}".
Examples
{{price}} * {{qty}} - {{discount}}: the price for the quantity, less a discount.
round({{total}} / 3, 2): a bill split three ways, to the cent. {{subtotal}} * (1 + {{tax_rate}}): add tax, with tax_rate saved as 0.08 for 8%.
max({{distance_km}} * 1.2, 5): a delivery fee of 1.20 a km, at least 5. It works well after a Distance step.
round({{loan}} * {{rate}} * pow(1 + {{rate}}, 360) / (pow(1 + {{rate}}, 360) - 1), 2): the monthly payment on a 30-year loan (360 months), with rate as the monthly interest, like 0.004.
days_between(today(), {{due_date}}): days left until a date saved like 2026-12-31. add_days(today(), 30): the date 30 days from today.
How numbers are read
A plain number like 1.234 reads as 1.234 everywhere, the way steps and HTTP answers write it.
In countries that group thousands with dots, like Indonesia and Germany, write a currency mark ("Rp 15.000") or two groups ("1.234.567") to mean thousands. A value with a currency mark or your country's decimal mark is read your country's way: in Germany "1.234,50 €" is 1234.5.
When something goes wrong
If a value is missing or is not a number, the step keeps the variable's old value, writes why in the run log and goes on, so the chat never stops halfway. Guard against dividing by zero with if(), for example if({{qty}} > 0, {{total}} / {{qty}}, 0).
A formula that is too long (over 500 characters), too deep (more than 64 brackets inside one another) or works with a number too big (past 1,000,000,000,000,000) gets its own message in the run log. Split a long formula over two Calculate steps.