• Resolved zaferkucuk

    (@zaferkucuk)


    How can I write this formula in this plugin?

    a (quantity_field_id_0)
    b (quantity_field_id_1)
    c (quantity_field_id_2)

    a*((b/100)*(1+(b/100)^c)) / ((1+(b/100)^c) -1)

    I think I can use POW correctly.

    quantity_field_id_0 *(( quantity_field_id_2 /100)*POW(1+( quantity_field_id_2 /100), quantity_field_id_1 )/(POW(1+( quantity_field_id_2 /100), quantity_field_id_1 )-1)

Viewing 1 replies (of 1 total)
  • Plugin Author Stylemix

    (@stylemix)

    Hi @zaferkucuk

    Please use Math.pow() instead of POW(), and here we also corrected your Calculator formula/logic:

    quantity_field_id_0 * (( quantity_field_id_1 / 100) * Math.pow(1+( quantity_field_id_1 / 100), quantity_field_id_2 ) / (Math.pow(1+( quantity_field_id_1 /100), quantity_field_id_2 )-1)

Viewing 1 replies (of 1 total)
  • The topic ‘Correct formula’ is closed to new replies.