# Calculation Question and how to do it

Nov 29, 2018

Hello, I want the users to calculate return on capital expenditure using a formula. and i am wondering about the best way to do it.

=((drag item1 /drag item 2*52)/drag item 3)*100

I thought about a drag and drop where they could drag the information provided (there are 3 figures)  to the correct position in the formula.  That bit is fine but I would want when they click submit for it to display the number it would calculate on the feedback slide for the incorrect answers, if depending on the incorrect combination they dragged  the items to.

I also thought about multiple text entry boxes.

What do think would be the best solution? I've gone a bit snow blind!

Thanks

michelle

###### 4 Replies

Hey Michelle,

I haven't done anything like that before, but this is what I'm thinking may work:

1. Create 3 number variables
2. Create your drag and drop items
3. Add these triggers in this order:
• Adjust var 01 to x when drag item one dropped on drop zone 1
• Adjust var 01 to y when drag item two dropped on drop zone 1
• Adjust var 01 to z when drag item three dropped on drop zone 1
• Adjust var 02 to x when drag item one dropped on drop zone 2
• Adjust var 02 to y when drag item two dropped on drop zone 2
• Adjust var 02 to z when drag item three dropped on drop zone 2
• Adjust var 03 to x when drag item one dropped on drop zone 3
• Adjust var 03 to y when drag item two dropped on drop zone 3
• Adjust var 03 to z when drag item three dropped on drop zone 3
• When user clicks Submit…Adjust var 01 – divide by var 02
• When user clicks Submit…Adjust var 01 – multiply x 52
• When user clicks Submit…Adjust var 01 – divide by var 03
• When user clicks Submit…Adjust var 01 – multiply by 100
4. Then you would want to set up slide layers to show your feedback.

I hope that helps! :)

Hey Michelle,

One quick order of operations change...

Adjust var 02 – multiply x 52
Adjust var 01 – divide by var 02
Adjust var 01 – divide by var 03
Adjust var 01 – multiply by 100

-Mike

Hey Michelle,

Here's a file that Mike created for you. Hope that helps! :)