Including percentage and such like to a calculation

  • Profile Image
    tomorrownight
    Asked on February 03, 2016 at 09:44 AM

    hello,

    i created a nice form with you guys but now the person who asked me to make it wants to add discounts.  Is there a way of reducing the form calculation down by 10% or something?  There is no percent options in the Maths that i can see. thanks

     

    Adam

  • Profile Image
    Charlie
    Answered on February 03, 2016 at 12:20 PM

    It depends on how your form is setup. You just need to convert the percentage to decimal places.

    Example:

    To get 10% on your price, just do this formula:

    Price x 0.10 = 10% of the price

    To get 20% on your price, just do this formula:

    Price x 0.20 = 20% of the price

    ...and so on.

     

    However, it depends on how your form is setup. Here's my test form: https://form.jotform.com/60335126857962. In my end, I will let my users set a discount percentage, this means the inputted number is not converted to a 2 decimal value, I need to convert them first. My formula would be like this:

    Price - ( (Discount % / 100 ) * Price ) = total price minus the discount

    Example:

    Price = 100

    Discount = 10 (which means 10%, no need to add "%" sign)

    Formula calculation:

    = 100 - ( ( 10 / 100 ) * 100 )

    = 100 - ( (0.1) * 100 )

    = 100 - ( 10 )

    = 90 total price

     

    I hope that helps. Do let us know if you need more information on this.

  • Profile Image
    tomorrownight
    Answered on February 08, 2016 at 03:05 AM

    awesome, i really should have got that as its basic maths shouldnt i?  Im sorry. 

    thanks alot! 

  • Profile Image
    Chriistian
    Answered on February 08, 2016 at 04:59 AM

    On behalf of my colleague, Charlie, you are welcome. If you need further assistance, please feel free to contact us again.