Title: Incorrect calculation
Last modified: November 28, 2017

---

# Incorrect calculation

 *  Resolved [Nitrat](https://wordpress.org/support/users/nitrat/)
 * (@nitrat)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/incorrect-calculation-2/)
 * Hello
    The formula gives the correct number of records. [gravitywp_count formid
   =’14’] But it gives an incorrect amount by the number field: [gravitywp_count
   formid=’14’ number_field=’37’]

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

 *  Plugin Author [GravityWP](https://wordpress.org/support/users/gravitywp/)
 * (@gravitywp)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/incorrect-calculation-2/#post-9734952)
 * Hi Nitrat,
 * this is not enough information for me to do any debugging. The plugin works perfectly
   in all my test- and live environments. Could you provide a link to the form you’re
   using? Did you try the shortcode with double quotes (“)? Did you check it with
   other number fields in other forms on your site? Did you try it on another site?
   Do you have a test site?
 *  Thread Starter [Nitrat](https://wordpress.org/support/users/nitrat/)
 * (@nitrat)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/incorrect-calculation-2/#post-9735878)
 * Hi
    [Link for test](http://bsoinsur.online/test3/) I tried and without quotes,
   and with different quotes – does not consider this particular form. Other forms
   with this shortcode work well.
 *  Plugin Author [GravityWP](https://wordpress.org/support/users/gravitywp/)
 * (@gravitywp)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/incorrect-calculation-2/#post-9750191)
 * Hi Nitrat,
 * could you provide me with more details, because it’s difficult for me to do debugging
   still. Do you have a live form somewhere I can have a look at? Or otherwise contact
   us here [https://gravitywp.com/support/](https://gravitywp.com/support/) or send
   an e-mail with an export of the form you’re using, so we can test it on our own
   test environment: [info@gravitywp.com](https://wordpress.org/support/topic/incorrect-calculation-2/info@gravitywp.com?output_format=md).
 *  Plugin Author [GravityWP](https://wordpress.org/support/users/gravitywp/)
 * (@gravitywp)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/incorrect-calculation-2/#post-9757984)
 * The problem is solved (interaction by mail). It had to do with the page_size 
   argument within the shortcode. The form Nitrat was using had a lot of entries.
   When counting a number field, the result is filtered using the page_size parameter.
   You can easily solve this by adding for example **page_size=”2000″** to the shortcode(
   or a higher number if needed).

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

The topic ‘Incorrect calculation’ is closed to new replies.

 * ![](https://ps.w.org/gravitywp-count/assets/icon-256x256.jpg?rev=3215193)
 * [GravityWP - Count](https://wordpress.org/plugins/gravitywp-count/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gravitywp-count/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gravitywp-count/)
 * [Active Topics](https://wordpress.org/support/plugin/gravitywp-count/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gravitywp-count/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gravitywp-count/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [GravityWP](https://wordpress.org/support/users/gravitywp/)
 * Last activity: [8 years, 5 months ago](https://wordpress.org/support/topic/incorrect-calculation-2/#post-9757984)
 * Status: resolved