Title: Calculating
Last modified: August 21, 2016

---

# Calculating

 *  Resolved [flaviapimentel](https://wordpress.org/support/users/flaviapimentel/)
 * (@flaviapimentel)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/calculating/)
 * Hey, guys.
 * First of all, thank you so much for this plugin!
 * I am testing the plugin on my website and I just can’t seem to figure out the
   correct formula for final rate. The idea is that one can choose he/she diet of
   the week by selecting thru a list of options. How do I manage to calculate only
   the selected fields?
 * You can see the form in this link: [http://cozinhafitness.com.br/?page_id=2762](http://cozinhafitness.com.br/?page_id=2762)
 * Thanks again.
 * [http://wordpress.org/plugins/calculated-fields-form/](http://wordpress.org/plugins/calculated-fields-form/)

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

 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/calculating/#post-4500586)
 * Hi,
 * I’ve checked your form, and your form includes many fields but the equation used
   is simply:
 * fieldname2*2
 * If you want to create an equation that display the calories of all fields selected,
   you should make some corrections in your form:
 * First, all check box should contain numbers as values, currently the value of
   fields are texts. Similar with the drop-down fields, if an option’s text is 100g,
   the option’s value should be simply 100.
 * Second the equation should be the sum of drop-down fields multiplied by the corresponding
   checkboxes,
 * For example, I will take one section of your form, you should complete the equation
   to include all sections of your form:
 * The field “Almoço – Peso Carboidrato” is the fieldname27, and the corresponding
   checkboxes fieldname23, so the following operation fieldname27*fieldname23 is
   part of your equation, so your equation would be:
 * fieldname27*fieldname23+……
 * The sum of all sections
 *  Thread Starter [flaviapimentel](https://wordpress.org/support/users/flaviapimentel/)
 * (@flaviapimentel)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/calculating/#post-4500720)
 * Hello!
 * Many thanks. Worked like a charm.
 * The only thing that I don´t know how to do is the following: this form is for
   people making their own weekly diet. Therefore, he/she may choose from day 1 
   to 7. The thing is, when we choose day 2, for example, all the sum from day 1
   becames 0 and it stard summing day 2. It does not give the result for day 1 +
   day 2 + ….
 * Is it possible to make that possible?
 * Best,
    Flávia
 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/calculating/#post-4500722)
 * Hi,
 * In the Calculated Fields Form, the dependent fields are removed from the equation
   when are not active, so if the fields of DAY 1 are hidden when select DAY 2…,
   the fields related to the DAY 1 are removed from the equation.
 * My recommendation in your case is modify your form to be multipage, where each
   page represent one day (If you want to create a multipage form, only need insert
   fields page break)
 *  Thread Starter [flaviapimentel](https://wordpress.org/support/users/flaviapimentel/)
 * (@flaviapimentel)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/calculating/#post-4500728)
 * Thanks a lot!
    It worked so fine!
 * Congratulations again for this amazing plugin. Will definitely buy the premium
   version.
 * Best,
    – Flávia

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

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

 * 4 replies
 * 2 participants
 * Last reply from: [flaviapimentel](https://wordpress.org/support/users/flaviapimentel/)
 * Last activity: [12 years, 4 months ago](https://wordpress.org/support/topic/calculating/#post-4500728)
 * Status: resolved