Answered

Connect answer with Logarithm to calculate prize

  • 6 March 2024
  • 5 replies
  • 29 views

Hello, i want to creat a form, where someone can calculate the prize for the cleaningservice by themself.

 

Example:

First  question: How many m² have to be cleaned? 

Answer: 100 m²

backend Calculation: 1 m² is 5 € so 100 will be 500€

 

SecondQuestion: How many times should be cleaned ,

Answer2.1 1x week, backend Calculation:  x1.0

Answer2.2 3x week, backend Calculation:  x3.0

 

and so on.

End would show the final prize

icon

Best answer by john.desborough 9 March 2024, 19:54

View original

5 replies

Userlevel 7
Badge +5

Hi @sunschein05 Happy Wednesday! I hope you’re having a great week so far. 

Have you taken a look at our calculation options yet? 😀

Hi @liz, but what if tehther are multiple answers possible. In my exampale you can answer everything from 1-10000 m², so i need a calculation that 1 is 50 $ 2 is 100$ and so on

Userlevel 7
Badge +6

@sunschein05 - when you create the calculations you need to create a custom variable - something like v_total - and use the logic rules to do the calculation.. for example

 

  • question 1 - how many square metres need to be cleaned? 
    • logic rules
      • add ‘Q1 response’ to v_total
      • multply v_total by 5 
        • (this will update the value of v_total variable to represent the area x cost
  • question 2 - how many time per week
    • logic rules
      • multiply v_total by Q2 response
        • this update the v_total variable to the entire value per week (area x cost x frequency)
  • a summary (statement) page that shows the calculation 
    • now you can display the estimate using the @recall function to show the values on this statement page. 

 

hope that helps

 

des

Thank you, but somehow its hard for me to do it, even though i found the variables.

Would you mind to go  it through with me.

 

So, question 1 - how many square metres need to be cleaned?

answer is possible from 1- endless , with 1 has the worth of 0,3 € 2 =  0,6 € and so on.

 

question 2 - how many time per week

answer ist possibel from 1-7. so from here its multiple choice only.

1 has the worth of multiply with 1.0, 2 = multiply with 2, 3= multiply with 3.

Can you walk me through please how you would set it up 

 

 

john.desborough

Reply