Having trouble with calculation

  • Profile Image
    thermography
    Asked on July 01, 2022 at 01:12 AM

    Hello,


    We are noticing with #3 the calculations are off. It is not calculating the correct number of bottles.


    Can not figure out why. Below is a picture of the exact question and conditional logic that is not calculating things correctly.


    1656652313_62be8219cacfc_

  • Profile Image
    Marvin
    Answered on July 01, 2022 at 03:31 AM

    Hi Matthew,

    Thanks for reaching out to Jotform Support. I've cloned your form and look in to the condition you have created but I can't find the one showing on your screenshot. Can you please send a screenshot that showing the number of the condition. See screenshot below on how to check the number.

    1656660437_62bea1d575fc3_

    Once we hear back from you, we'll be able to move forward with a solution.


  • Profile Image
    thermography
    Answered on July 01, 2022 at 09:09 AM

    1656680924_62bef1dcaaecf_


    it is this question with conditional logic. This question on the form only has 1 conditional logic attached.


    1656680974_62bef20ecc22a_

  • Profile Image
    Marlon
    Answered on July 01, 2022 at 09:35 AM

    Hello Matthew,

    We apologize for the inconvenience it has caused you. Upon cloning and testing your form, I can't replicate the issue on my end. Have you tried removing the parenthesis on the first part of the operations?

    To confirm, the operations should be:

    Total Amount per... * Number of Days... / Grand total of U = Number of Bottles Needed For Their Protocol #3.

    1656682398_62bef79e22e74_

    If you have any further questions, please let us know.


  • Profile Image
    thermography
    Answered on July 01, 2022 at 09:53 AM

    as you can see on any other condition for #1 and #2 and so on for any other asking the same question.


    The conditional logic is the same. Why would it matter on the paraenthesis for one and not the other 9 questions?


    1656683572_62befc349b934_

  • Profile Image
    thermography
    Answered on July 01, 2022 at 09:55 AM

    do I need to just completely delete #3.... and then redo it since it is glitching.


    You can see in the submissions for #3 that the number of bottles is not calculating correctly for them, but the other calculate just fine.

  • Profile Image
    Richie
    Answered on July 01, 2022 at 10:33 AM

    Hi thermography,

    I have checked your conditions and it seems to be correct.

    I have tested a cloned version of your form and it seems the value and calculation is showing correctly at my end.

    1656685893_62bf054508c67_firefox_cFYp00E

    My cloned form:https://form.jotform.com/221813843451958

    Can you please try your form again and let us know how it goes?