Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author codepeople

    (@codepeople)

    Hi,

    Could you send me the link to your form to check the equation, please?

    Best regards.

    Hello,

    Thank you for the great plugin.
    I am trying to figure out a solution to my form.

    The equation is probably to complex for me, could you please help me

    Up to € 2,500 15.0%

    Over the remainder, from € 2,500 to € 5,000 10.0%

    Over the remainder, from € 5,000 to € 10,000 5.0%

    Over the remainder, from € 10,000 to € 200,000 1.0%

    Over the remainder, from € 200,000 to € 1,000,000 0.5%

    Thanks,

    Lodewijk

    Plugin Author codepeople

    (@codepeople)

    Hi,

    You are asking for only a part of the equation, so I will answer to your specific question. I don’t know the way you are representing the intervals, or if the number to compare is evaluated previously, so I will represent the parts of the equation I don’t know as the symbol (…)

    (function(){
    var value = …;
    var interes = 0;
    if(value <= 2500) interest = 0.15;
    if(2500<value && value<=5000) interest = 0.10;
    if(5000<value && value<=10000) interest = 0.05;
    if(10000<value && value<=200000) interest = 0.01;
    if(200000<value && value<=1000000) interest = 0.005;

    })()

    Note: You should include the situation if the value is bigger than 1000000.

    Best regards.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘If value’ is closed to new replies.