# Formula calculation

Jun 20, 2022

By
Tech RockED

Hi Everyone,

I need to perform a simple calculation in the storyline, which has the formula in it. On the first page, I have made the user to enter the inputs (x,y,z).

The Formula is **(x/y)*z=P.**

So, I need to perform the calculation and have to store the result value to the variable**(Z).**

I have attached the work file and articulate review link **here **for your reference.

Is this something that can be done in Storyline or does it require javascript?

**Any help is much appreciated!**

**Thank you,**

**Sudhakaran**

## 1 Reply

Storyline can only do one math operation at a time. Thus, you need a sequence of triggers. Here's an example of how those might look:

Note: You

have both "z" and "Z" variables. The program doesn't recognize the difference between upper- and lowercase letters in variable names.can't