Connect answer with Logarithm to calculate prize | Community
Skip to main content
Answered

Connect answer with Logarithm to calculate prize


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

Best answer by john.desborough

@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

View original

5 replies

Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 15034 replies
  • March 6, 2024

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

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


  • Author
  • Explorer
  • 3 replies
  • March 9, 2024

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


john.desborough
Forum|alt.badge.img+6
  • Certified Partner & Champion
  • 5317 replies
  • Answer
  • March 9, 2024

@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


  • Author
  • Explorer
  • 3 replies
  • March 10, 2024

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 

 

 


  • Author
  • Explorer
  • 3 replies
  • March 11, 2024

Reply