Title: Script error: Value between 95 and 102
Last modified: November 3, 2016

---

# Script error: Value between 95 and 102

 *  Resolved [cinnabar](https://wordpress.org/support/users/cinnabar/)
 * (@cinnabar)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/script-error-value-between-95-and-102/)
 * I have a problem that the calculations form gives script error when I add guest
   amount between 95 and 102. Please click on the rates accordion to see the calculations
   form.
 * [http://bygracealone.co.za/index.php/rates/](http://bygracealone.co.za/index.php/rates/)
 * Appreciate your help in advance.

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

 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/script-error-value-between-95-and-102/#post-8392165)
 * Hi [@cinnabar](https://wordpress.org/support/users/cinnabar/),
 * You have created an infinite loop between the equation and the dependencies defined
   in the calculated field:
 * The equation associated to the calculated field is:
 * `fieldname6+(fieldname8*fieldname2)+(15000)+fieldname5+fieldname14+fieldname15
   +fieldname16+(fieldname5*75)+(fieldname14*90)+(fieldname15*70)+(fieldname16*30)`
 * and the dependencies:
 * If the `result >= 74000`, then the fields: “fieldname14”, “fieldname5”, “fieldname15”,
   and “fieldname16” are available.
 * But if the `result <= 116000`, then the fields: “fieldname14”, “fieldname5”, “
   fieldname15”, and “fieldname16” are available.
 * So, if the result is >= 74000 the fields: “fieldname14”, “fieldname5”, “fieldname15”,
   and “fieldname16” are available and the equation should be reevaluated, because
   there are new fields to take into account, but as the equation was reevaluated,
   the dependencies should be checked again because the result of the equation has
   varied, and so on. If the fields that are used in the equation are modified with
   the dependencies you generate an infinite loop.
 * Other type of infinite loop can be generated indirectly, for example, if the 
   field A uses the field B in its equation, the field B uses the field C, and the
   field C uses the field A, closing the loop.
 * Best regards.
 *  Thread Starter [cinnabar](https://wordpress.org/support/users/cinnabar/)
 * (@cinnabar)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/script-error-value-between-95-and-102/#post-8394590)
 * Thank you for your reply, still a bit confused as to how I am to fix the problem.
   Can you please provide instructions to correct the error.
 *  Thread Starter [cinnabar](https://wordpress.org/support/users/cinnabar/)
 * (@cinnabar)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/script-error-value-between-95-and-102/#post-8394596)
 * Sorry, forgot to add that the calculations worked fine up untill the last update.
 *  Thread Starter [cinnabar](https://wordpress.org/support/users/cinnabar/)
 * (@cinnabar)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/script-error-value-between-95-and-102/#post-8394616)
 * Sorry, I figured it out. Thank you for your prompt response.

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

The topic ‘Script error: Value between 95 and 102’ 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/)

## Tags

 * [script error](https://wordpress.org/support/topic-tag/script-error/)

 * 4 replies
 * 2 participants
 * Last reply from: [cinnabar](https://wordpress.org/support/users/cinnabar/)
 * Last activity: [9 years, 6 months ago](https://wordpress.org/support/topic/script-error-value-between-95-and-102/#post-8394616)
 * Status: resolved