# Making calculations

**URL:** <https://forum.bubble.io/t/making-calculations/84178>\
**Category:** Need help\
**Created:** [March 31, 2020, 12:31pm UTC](https://forum.bubble.io/t/making-calculations/84178 "2020-03-31T12:31:43Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Helmar](https://avatars.discourse-cdn.com/v4/letter/h/c67d28/32.png) [@Helmar](https://forum.bubble.io/u/Helmar)\
**Post date:** [March 31, 2020, 12:31pm UTC](https://forum.bubble.io/t/making-calculations/84178/1 "2020-03-31T12:31:43Z")

</div>

Need a bit of help making calculations.  
For this simple example, I have two input boxes and a text for displaying the result (live)  
Calculation is just input1\*input2  
But nothing displays

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/d/4/d4be9e4e86ff82d315b4acfa75b61124137d6b2f.png)

And the workflow:  
 ![image](https://us1.discourse-cdn.com/bubble/original/3X/d/f/dfd4c18351ef9ea6912c60dfca74122f6ef56461.png)

---

<div class="post-metadata">

**Author:** ![mikeloc](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/mikeloc/32/93001_2.png) [@mikeloc](https://forum.bubble.io/u/mikeloc)\
**Post date:** [March 31, 2020, 12:42pm UTC](https://forum.bubble.io/t/making-calculations/84178/2 "2020-03-31T12:42:36Z")

</div>

Hi there, @Helmar… you can do the calculation directly in the text field if you’d like. If both of the input fields have a content format of, say, integer, then you can define the text field’s value as input field 1’s value \* input field 2’s value. Make sense?

Best…  
Mike

---

<div class="post-metadata">

**Author:** ![Helmar](https://avatars.discourse-cdn.com/v4/letter/h/c67d28/32.png) [@Helmar](https://forum.bubble.io/u/Helmar)\
**Post date:** [March 31, 2020, 12:47pm UTC](https://forum.bubble.io/t/making-calculations/84178/3 "2020-03-31T12:47:55Z")

</div>

You are right. I could not make it work the first time I tried.

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/7/b/7b762592bb1fd7d02a3e179f21f195554a7fecda.png)

But in the meantime I was thinking that it should be a dropdown with the options: High, medium, low. corresponding to the intigers 3,2,1…

---

<div class="post-metadata">

**Author:** ![lstk.kb](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/lstk.kb/32/163042_2.png) [@lstk.kb](https://forum.bubble.io/u/lstk.kb)\
**Post date:** [March 31, 2020, 12:50pm UTC](https://forum.bubble.io/t/making-calculations/84178/4 "2020-03-31T12:50:16Z")

</div>

You need to add two change events for the first and second input. In which it is necessary to change the state (result)

---

<div class="post-metadata">

**Author:** ![lstk.kb](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/lstk.kb/32/163042_2.png) [@lstk.kb](https://forum.bubble.io/u/lstk.kb)\
**Post date:** [March 31, 2020, 1:05pm UTC](https://forum.bubble.io/t/making-calculations/84178/6 "2020-03-31T13:05:30Z")

</div>

![31-03-2020 16-19-45](https://us1.discourse-cdn.com/bubble/original/3X/e/7/e7e7fa7fc1196ab8f346c43e8659ee448485db75.jpeg)  
 ![31-03-2020 16-20-15](https://us1.discourse-cdn.com/bubble/original/3X/a/0/a0436893c84827c200522d96274e970db2c791f5.jpeg)  
 ![31-03-2020 16-20-43](https://us1.discourse-cdn.com/bubble/original/3X/2/1/2179f0eacb40e0db3c3af335e188450fb27877de.jpeg)  
 ![31-03-2020 16-21-31](https://us1.discourse-cdn.com/bubble/original/3X/d/a/dad1688cc7f5330a53814091225c73c692bd4c29.jpeg)

---

<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:** [June 9, 2020, 12:31pm UTC](https://forum.bubble.io/t/making-calculations/84178/7 "2020-06-09T12:31:47Z")

</div>

Closed on June 9, 2020, 12:31pm UTC

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