• Resolved tobecom

    (@tobecom)


    Hi all πŸ™‚

    I hesitate to buy the premium version of the plugin but before that I would like to create a first calculator. I would like to allow the calculation of taxes in France. It works in the form of income brackets:

    Up to 10 777 € -> 0%

    From 10 778 € to 27 478 € ->11 %

    From 27 479 € to 78 570 € -> 30%

    From 78 571 € to 168 994 € -> 41%

    More than 168 994 € -> 45%

    The user would put for example “30000” as input and it would calculate and display the total. I’ve tested many things but nothing works. This seems to me to be very basic. Any help please πŸ™‚ ? Thanks

Viewing 1 replies (of 1 total)
  • Hello, @tobecom

    In the free version of the plugin, this case can be solved using a JS formula, for this, you need to build the correct conditions. I made a JS formula according to your data:

    if ( quantity_field_id_0 <= 3000) { 0 } else if ( quantity_field_id_0 >= 10778 && quantity_field_id_0 <=27478 ) { quantity_field_id_0 / 100 * 11 } else if ( quantity_field_id_0 >= 27479 && quantity_field_id_0 <=78570 ) { quantity_field_id_0 / 100 * 30 } else if ( quantity_field_id_0 >= 78571 && quantity_field_id_0 <=168994 ) { quantity_field_id_0 / 100 * 41 } else if ( quantity_field_id_0 > 168994 ) { quantity_field_id_0 / 100 * 45 }

    For this, I used two elements – Quantity Field and Total field. I demonstrated the calculator in the video:

    Link

    If you have a PRO version of the plugin, this case can be easily solved using the Conditions function, here is a link to the documentation:

    Link

    P.S If this thread was useful for you, we would be grateful for your good feedback about our plugin. We value each of our users and are happy to hear your kind words:

    https://ww.wp.xz.cn/support/plugin/cost-calculator-builder/reviews/

    Best regards.

Viewing 1 replies (of 1 total)

The topic ‘Help with tax bracket calculation’ is closed to new replies.