Title: Solution Ceiling/Cap
Last modified: July 20, 2023

---

# Solution Ceiling/Cap

 *  Resolved [seiu73rojas](https://wordpress.org/support/users/seiu73rojas/)
 * (@seiu73rojas)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/solution-ceiling-cap/)
 * We’re looking to add a cap/ceiling to the number in the solution box. For example,
   if an equation results in a user seeing “$92.23” we want that number, or any 
   number above $80, to stay at $80.
 * Is it possible to add parameters that ensure this?

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

 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/solution-ceiling-cap/#post-16910837)
 * Hello [@seiu73rojas](https://wordpress.org/support/users/seiu73rojas/)
 * Thank you very much for using our plugin. You only need to use the MIN operation.
   I’ll try to describe the process with a hypothetical equation.
 * Assuming your current equation is fieldname1+fieldname2, but you want the result
   won’t be over 80. In this hypothetical case, you should edit the equation as 
   follows:
 *     ```wp-block-code
       MIN(fieldname1+fieldname2, 80)
       ```
   
 * Best regards.
 *  Thread Starter [seiu73rojas](https://wordpress.org/support/users/seiu73rojas/)
 * (@seiu73rojas)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/solution-ceiling-cap/#post-16913153)
 * Gotcha! I’m also currently using the PREC decimal limit in the equation. How 
   would I add the MIN aspect to it?
 * Current eq: PREC(fieldname2*0.0135/fieldname10, 2)
 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/solution-ceiling-cap/#post-16913606)
 * Hello [@seiu73rojas](https://wordpress.org/support/users/seiu73rojas/)
 * You must use the PREC operation as the outermost operation in the equation:
 *     ```wp-block-code
       PREC(MIN(fieldname2*0.0135/fieldname10, 80), 2)
       ```
   
 * Best regards.
 *  Thread Starter [seiu73rojas](https://wordpress.org/support/users/seiu73rojas/)
 * (@seiu73rojas)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/solution-ceiling-cap/#post-16919422)
 * Thank you! Sorry for continuing to pester, but another issue came up. (Hopefully
   this makes sense.) So, this equation we’re using is for members to figure out
   how much their dues will be per paycheck. With that said, we have a myriad of
   options for the number of paychecks that workers typically receive (9-52) in 
   a given year. However, there is a **monthly **dues cap ($80), which means in 
   certain instances, a single weekly paycheck will result higher than that amount
   using our formula. For example, a person making $200,000 per year under a typical
   26 paychecks per year cycle will pay $103.85 per pay check — higher than the 
   monthly cap.
 * Is there a way, in those instances where a single paycheck is higher than the
   cap, to have it result in a figure that takes into account the cap and divides
   it equally per month? Or something of that sort?
 * Equation can be found [here](https://seiu73.org/wp-content/uploads/2023/07/equation.png),
   form field [here](https://seiu73.org/wp-content/uploads/2023/07/form-field.png).
 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/solution-ceiling-cap/#post-16919599)
 * Hello [@seiu73rojas](https://wordpress.org/support/users/seiu73rojas/)
 * The solution would depend on the project. If you have a single paycheck (or some
   paychecks) over the top, I recommend summing all paychecks, dividing the results
   by the number of payments, and then applying the top to the division result.
 * I’m sorry, but the support does not cover the development of the users’ projects.
   If you need someone that implement your project, you can contact us directly 
   via the plugin website. [Customization](https://cff.dwbooster.com/customization)
 * Best regards.

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

The topic ‘Solution Ceiling/Cap’ 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/)

 * 5 replies
 * 2 participants
 * Last reply from: [codepeople](https://wordpress.org/support/users/codepeople/)
 * Last activity: [2 years, 10 months ago](https://wordpress.org/support/topic/solution-ceiling-cap/#post-16919599)
 * Status: resolved