# Calculated field value on backend workflow DB insert

**URL:** <https://forum.bubble.io/t/calculated-field-value-on-backend-workflow-db-insert/173720>\
**Category:** Need help\
**Created:** [October 13, 2021, 6:18pm UTC](https://forum.bubble.io/t/calculated-field-value-on-backend-workflow-db-insert/173720 "2021-10-13T18:18:06Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![patrice.lelaisant](https://avatars.discourse-cdn.com/v4/letter/p/e9bcb4/32.png) [@patrice.lelaisant](https://forum.bubble.io/u/patrice.lelaisant)\
**Post date:** [October 13, 2021, 6:18pm UTC](https://forum.bubble.io/t/calculated-field-value-on-backend-workflow-db-insert/173720/1 "2021-10-13T18:18:06Z")

</div>

Hi,

I’m stuck on how to deal with Bubble on this matter that seems to be simple indeed.  
I fetch data from api call and i want to insert things into the DB with a calculated field value based on data field retreived by using a simple formula as you can see on the screen below. I got all the maths operators

 ![screen-bubble](https://us1.discourse-cdn.com/bubble/original/3X/6/f/6fccee859b0e548f6b9304dae85095ac12a4b262.jpeg)

But nothing that allow me to deal with a simple formula like this Total profit = (profit)/(balance-profit) with parenthesis.  
Any help would be appreciated as i’m not able to find the way to deal with this matter.  
Thanks

---

<div class="post-metadata">

**Author:** ![maheshkasindi](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/maheshkasindi/32/166723_2.png) [@maheshkasindi](https://forum.bubble.io/u/maheshkasindi)\
**Post date:** [October 13, 2021, 6:32pm UTC](https://forum.bubble.io/t/calculated-field-value-on-backend-workflow-db-insert/173720/2 "2021-10-13T18:32:19Z")

</div>

Have you tried using math operators in the expression?

---

<div class="post-metadata">

**Author:** ![patrice.lelaisant](https://avatars.discourse-cdn.com/v4/letter/p/e9bcb4/32.png) [@patrice.lelaisant](https://forum.bubble.io/u/patrice.lelaisant)\
**Post date:** [October 13, 2021, 7:47pm UTC](https://forum.bubble.io/t/calculated-field-value-on-backend-workflow-db-insert/173720/3 "2021-10-13T19:47:03Z")

</div>

To use math expression, you need to use parenthesis. A+B\*C is not the same as (A+B)\*C. Maths is not the problem as there are lots of expression, the issue is Parenthesis in the backend worflow that is not possible which is a complete mess.

---

<div class="post-metadata">

**Author:** ![equibodyapp](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/equibodyapp/32/159574_2.png) [@equibodyapp](https://forum.bubble.io/u/equibodyapp)\
**Post date:** [October 13, 2021, 10:00pm UTC](https://forum.bubble.io/t/calculated-field-value-on-backend-workflow-db-insert/173720/4 "2021-10-13T22:00:42Z")

</div>

Bubble is quite limited in the calculations it can do natively - you’ll need to find a server-side calculator plugin. Something like this:

> **[\#7 Smart Calculator for Lists Plugin for Bubble, by indlco](https://bubble.io/plugin/7-smart-calculator-for-lists-1601921975343x453831032442191900)**
>
> \#7 Smart Calculator for Lists Plugin page on Bubble, by indlco. Add #7 Smart Calculator for Lists in one click to your app. Bubble lets you build web apps without any code.

---

<div class="post-metadata">

**Author:** ![fbrown](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/fbrown/32/251740_2.png) [@fbrown](https://forum.bubble.io/u/fbrown)\
**Post date:** [October 14, 2021, 1:15am UTC](https://forum.bubble.io/t/calculated-field-value-on-backend-workflow-db-insert/173720/5 "2021-10-14T01:15:18Z")

</div>

Have you tried the [Toolbox](https://bubble.io/plugin/toolbox-1488796042609x768734193128308700) plugin by @mishav ?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [December 22, 2021, 6:18pm UTC](https://forum.bubble.io/t/calculated-field-value-on-backend-workflow-db-insert/173720/6 "2021-12-22T18:18:26Z")

</div>

Closed on December 22, 2021, 6:18pm UTC

This topic was automatically closed after 70 days. New replies are no longer allowed.
