Title: Problem with the calculation
Last modified: October 21, 2020

---

# Problem with the calculation

 *  Resolved [Marin Marinov](https://wordpress.org/support/users/mpmarinov/)
 * (@mpmarinov)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/problem-with-the-calculation/)
 * Hello,
 * I have a problem with the calculation. It is this:
 * I have fieldname2, fieldname4 and fieldname6 where I write numbers e.g. 1.5, 
   5.2 and 10
    I still have fieldname27 and fieldname30
 * The following source is in filedname27:
 * (function () {
    if (fieldname6> fieldname2) return prec (fieldname6 / fieldname2,2);})()
 * If fieldname27 is greater than 0, I show fieldname30
 * The following source is in filedname30:
 * (function () {
    if (fieldname27> 1.5) return prec (fieldname6 / fiedname4,2);})()
 * Fieldname27 is calculated, but fieldname30 just shows up and stays empty.
 * Why is that and what kind of solution can I find.
 * Thanks to all who helped.

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

 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/problem-with-the-calculation/#post-13562120)
 * Hello [@mpmarinov](https://wordpress.org/support/users/mpmarinov/)
 * The structure of the equations are correct, but I don’t know if the values of
   the fields satisfy the conditions you have included on them. Please, indicate
   the URL to the page where the form is inserted to check it in action.
 * Best regards.
 *  Thread Starter [Marin Marinov](https://wordpress.org/support/users/mpmarinov/)
 * (@mpmarinov)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/problem-with-the-calculation/#post-13562182)
 * I have the problem resolved. Something with automatic calculation was not ok.

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

The topic ‘Problem with the calculation’ 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: [Marin Marinov](https://wordpress.org/support/users/mpmarinov/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/problem-with-the-calculation/#post-13562182)
 * Status: resolved