Title: Progressive Tax Calculation Function
Last modified: August 15, 2024

---

# Progressive Tax Calculation Function

 *  Resolved [buptrick](https://wordpress.org/support/users/buptrick/)
 * (@buptrick)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/progressive-tax-calculation-function/)
    - 0 TL – 110,000 TL: 15%
    - 110,001 TL – 230,000 TL: 20%
    - 230,001 TL – 580,000 TL: 27%
    - 580,001 TL – 3,000,000 TL: 35%
    - Above 3,000,001 TL: 40%
 * can you help me create a function?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [buptrick](https://wordpress.org/support/users/buptrick/)
 * (@buptrick)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/progressive-tax-calculation-function/#post-17954723)
 *     ```wp-block-code
       (function(){        if (fieldname2 <= 110000) return        fieldname2 * 0.15            if (fieldname2 <= 230000) return        110000 * 0.15 + (fieldname2 - 110000) * 0.20        if (fieldname2 <= 580000) return        110000 * 0.15 + (230000 - 110000) * 0.20 + (fieldname2 - 230000) * 0.27        if (fieldname2 <= 3000000) return        110000 * 0.15 + (230000 - 110000) * 0.20 + (580000 - 230000) * 0.27 + (fieldname2 - 580000) * 0.35        if (fieldname2 > 3000000) ;    110000 * 0.15 + (230000 - 110000) * 0.20 + (580000 - 230000) * 0.27 + (3000000 - 580000) * 0.35 + (fieldname2 - 3000000) * 0.40    })();
       ```
   
 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/progressive-tax-calculation-function/#post-17955277)
 * Hello [@buptrick](https://wordpress.org/support/users/buptrick/)
 * Thank you very much for using our plugin. Your equation is correct. However, 
   by using the MAX operation, you can implement the equation in one line of code
   without “if” conditional statements. However, as I said, your equation is correct.
 * The support service does not cover the implementation of the users’ projects.
   However, if you need someone to implement your project or equations, you can 
   contact us via the plugin website. [Contact Us](https://cff.dwbooster.com/customization)
 * Best regards.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Progressive Tax Calculation Function’ is closed to new replies.

 * ![](https://ps.w.org/calculated-fields-form/assets/icon-256x256.jpg?rev=1734377)
 * [Calculated Fields Form](https://wordpress.org/plugins/calculated-fields-form/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/calculated-fields-form/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/calculated-fields-form/)
 * [Active Topics](https://wordpress.org/support/plugin/calculated-fields-form/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/calculated-fields-form/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/calculated-fields-form/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [codepeople](https://wordpress.org/support/users/codepeople/)
 * Last activity: [1 year, 9 months ago](https://wordpress.org/support/topic/progressive-tax-calculation-function/#post-17955277)
 * Status: resolved