Title: Set Equation
Last modified: June 2, 2018

---

# Set Equation

 *  Resolved [relisys](https://wordpress.org/support/users/relisys/)
 * (@relisys)
 * [8 years ago](https://wordpress.org/support/topic/set-equation/)
 * ok, hi nice plugin. My question is, i am trying to calculate from for example
   if someone entered the value 80 in the field, the output would be = 4… so it 
   works out as 20 = 1, 40 = 2 60 = 3
 * could you help me set the Set Equation, for this.

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

 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [8 years ago](https://wordpress.org/support/topic/set-equation/#post-10353944)
 * Hello [@relisys](https://wordpress.org/support/users/relisys/),
 * The process is really simple, you are dividing the number by 20.
 * For example, assuming the number field in the form is fieldname1, the equation
   would be:
 * fieldname1/20
 * If you need only the whole part of division:
 * FLOOR(fieldname1/20)
 * If you want round the result to the nearest integer number:
 * ROUND(fieldname1/20)
 * Best regards.
 *  Thread Starter [relisys](https://wordpress.org/support/users/relisys/)
 * (@relisys)
 * [8 years ago](https://wordpress.org/support/topic/set-equation/#post-10353990)
 * this is the one I got, (fieldname2 fieldname1/20) thank you for confirming, is
   there any way of setting the results of 1, 1.5, 2, 2.5 so on and so forth.
 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [8 years ago](https://wordpress.org/support/topic/set-equation/#post-10354079)
 * Hello,
 * The equation (fieldname2 fieldname1/20) is incorrect, it should be simply fieldname1/
   20
 * Now, if you want to round the results as 0, 0.5, 1, 1.5, 2, 2.5, … It is simple
   mathematics
 *     ```
       ROUND(fieldname1/20/0.5)*0.5
       ```
   
 * and that’s all.
    Best regards.
 *  Thread Starter [relisys](https://wordpress.org/support/users/relisys/)
 * (@relisys)
 * [8 years ago](https://wordpress.org/support/topic/set-equation/#post-10354123)
 * oh, no they enter a value in fieldname2 and the output is in fieldname1/20) I
   get the correct results, however, I do it.
 * and next mathematics you provide is fantastic, this is what I wanted. thank you
   again.
 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [8 years ago](https://wordpress.org/support/topic/set-equation/#post-10354135)
 * Hello [@relisys](https://wordpress.org/support/users/relisys/),
 * It has been a pleasure to help you.
 * If you need additional help to implement your project, I can offer you a custom
   coding service from my private website:
 * [https://cff.dwbooster.com/customization](https://cff.dwbooster.com/customization)
 * Best regards.
 *  Thread Starter [relisys](https://wordpress.org/support/users/relisys/)
 * (@relisys)
 * [8 years ago](https://wordpress.org/support/topic/set-equation/#post-10354140)
 * ok thank you, I will keep you in mind if I come across needing this service.

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

The topic ‘Set Equation’ 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/)

 * 6 replies
 * 2 participants
 * Last reply from: [relisys](https://wordpress.org/support/users/relisys/)
 * Last activity: [8 years ago](https://wordpress.org/support/topic/set-equation/#post-10354140)
 * Status: resolved