Question Thanks for help-me

All WYSIWYG Web Builder support issues that are not covered in the forums below.
Forum rules
IMPORTANT NOTE!!

DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.



PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
Post Reply
User avatar
alexoliveira
 
 
Posts: 233
Joined: Fri Oct 01, 2021 5:12 am
Contact:

Question Thanks for help-me

Post by alexoliveira »

Is it possible to create a calculator like this?

https://imageupload.io/qlqplh3WctEJOgZ
S.A
User avatar
crispy68
 
 
Posts: 3018
Joined: Thu Oct 23, 2014 12:43 am
Location: Acworth, GA
Contact:

Re: Question Thanks for help-me

Post by crispy68 »

Anything is possible. What have you tried thus far?
User avatar
alexoliveira
 
 
Posts: 233
Joined: Fri Oct 01, 2021 5:12 am
Contact:

Re: Question Thanks for help-me

Post by alexoliveira »

I haven't tried it yet, if possible could you tell me the next steps? I would like to provide an example answer, I ask the customer how many people will be at the party and consume the beer and how many hours, then I will provide the result like in the image.
S.A
User avatar
crispy68
 
 
Posts: 3018
Joined: Thu Oct 23, 2014 12:43 am
Location: Acworth, GA
Contact:

Re: Question Thanks for help-me

Post by crispy68 »

So what is the formula you are using to get the answer you want?

Your example is:
20 people at party for 5 hours = what??
User avatar
alexoliveira
 
 
Posts: 233
Joined: Fri Oct 01, 2021 5:12 am
Contact:

Re: Question Thanks for help-me

Post by alexoliveira »

I'm using this cauculator method: Conditions...

Number(([value1]) + 2.5) * Number(([value2]) + 2.5) + 'L'

unfortunately he is giving the changed value, as I would like to present 1 person at a party for 1 hour = 4 L

image: https://ibb.co/9Hg0VMG
S.A
User avatar
crispy68
 
 
Posts: 3018
Joined: Thu Oct 23, 2014 12:43 am
Location: Acworth, GA
Contact:

Re: Question Thanks for help-me

Post by crispy68 »

Sorry, i'm still not following your logic or the context on how it is supposed to work.

What is value1? What is value2? What is 'L'?

Based on what you're saying you have this:

(1 person + 2.5) x (1 hour + 2.5) + L

which is:

3.5 x 3.5 + L

This doesn't make sense to me at the moment.

What exactly are you trying to figure out with the computation?
User avatar
alexoliveira
 
 
Posts: 233
Joined: Fri Oct 01, 2021 5:12 am
Contact:

Re: Question Thanks for help-me

Post by alexoliveira »

value1 is the number of people value2 is the number of hours the event lasts. L means quantity of liters of draft beer, in this case I would like the quantity of 1 person in 1 hour to be 2.5L (liters) ... this value is doubled when I change it to 2 people or 2 hours
S.A
User avatar
crispy68
 
 
Posts: 3018
Joined: Thu Oct 23, 2014 12:43 am
Location: Acworth, GA
Contact:

Re: Question Thanks for help-me

Post by crispy68 »

Ok, so your are trying to figure out the total number of Liters of beer based on the number of people attending over a certain amount of time and figuring 2.5L per person per hour.
User avatar
alexoliveira
 
 
Posts: 233
Joined: Fri Oct 01, 2021 5:12 am
Contact:

Re: Question Thanks for help-me

Post by alexoliveira »

exactly
S.A
User avatar
crispy68
 
 
Posts: 3018
Joined: Thu Oct 23, 2014 12:43 am
Location: Acworth, GA
Contact:

Re: Question Thanks for help-me

Post by crispy68 »

I am not at home to try this in WB yet, but your math/formula should be something like this:

(value2 * 2.5)*value1 = Total L

ex:
(8 hours x 2.5) x 10 people = Total L
20 x 10 = 200 L
User avatar
alexoliveira
 
 
Posts: 233
Joined: Fri Oct 01, 2021 5:12 am
Contact:

Re: Question Thanks for help-me

Post by alexoliveira »

How do I add this calculation you sent inside the expression box?

https://ibb.co/y0C0WZM
S.A
User avatar
onlye
 
 
Posts: 444
Joined: Sun Jun 17, 2018 12:36 am
Location: Gluckstadt, MS USA
Contact:

Re: Question Thanks for help-me

Post by onlye »

There are a number of companies that provide flexible calculators to embed in your website. Just copy and paste their code to an HTML object on your site. I can't remember which one I used for a Rock and Soil estimator for a customer. Most are a monthly fee but provide a "free" version with limited customization and typically about 500 impressons per month. Here are a few to look over:

https://www.interactivecalculator.com/
https://www.gigacalculator.com/
https://www.calculoid.com/
https://www.calconic.com/pricing
https://embed.calculator.zone/
onlye
Gluckstadt, MS USA
User avatar
crispy68
 
 
Posts: 3018
Joined: Thu Oct 23, 2014 12:43 am
Location: Acworth, GA
Contact:

Re: Question Thanks for help-me

Post by crispy68 »

I'm not at my computer to test this but based on what you've written, it would be something like this:

Number(([value2])*2.5)*Number([value1])

which is just the number of hours x 2.5 x the number of people.
User avatar
alexoliveira
 
 
Posts: 233
Joined: Fri Oct 01, 2021 5:12 am
Contact:

Re: Question Thanks for help-me

Post by alexoliveira »

Thank you for the indication only, but we are almost reaching the desired result here, I just need the correct calculation :)
S.A
User avatar
crispy68
 
 
Posts: 3018
Joined: Thu Oct 23, 2014 12:43 am
Location: Acworth, GA
Contact:

Re: Question Thanks for help-me

Post by crispy68 »

The calculation should be correct. Just not sure if that 'code' is correct until I can test it.
User avatar
alexoliveira
 
 
Posts: 233
Joined: Fri Oct 01, 2021 5:12 am
Contact:

Re: Question Thanks for help-me

Post by alexoliveira »

Thanks crispy, your solution fit like a glove. Solution completed.
S.A
alan_sh
 
 
Posts: 1852
Joined: Tue Jan 01, 2019 5:50 pm

Re: Question Thanks for help-me

Post by alan_sh »

2.5 litres of beer per hour? That's a lot of liquid to consume.
User avatar
crispy68
 
 
Posts: 3018
Joined: Thu Oct 23, 2014 12:43 am
Location: Acworth, GA
Contact:

Re: Question Thanks for help-me

Post by crispy68 »

That's a hell of a party! :wink:
User avatar
alexoliveira
 
 
Posts: 233
Joined: Fri Oct 01, 2021 5:12 am
Contact:

Re: Question Thanks for help-me

Post by alexoliveira »

But the intention was to solve the code, thank you to everyone involved, especially the crunchy
S.A
Post Reply