Title: Incorrect calculation
Last modified: September 2, 2022

---

# Incorrect calculation

 *  Resolved [montyenglish](https://wordpress.org/support/users/montyenglish/)
 * (@montyenglish)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/incorrect-calculation-3/)
 * Hi, I need to calculate price based on quantity of words for a proofreading service.
   The calculator is not multiplying correctly the price, might be a very silly 
   mistake. The price was initially having decimals 0.012/word but I then changed
   it to see if that was causing the issue in the calculation.
 * Could you give me a help?
 * this is the formula:
    price {quantity} * {product_price}
 * Many thanks,
    Ludovica
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fincorrect-calculation-3%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Krzysztof Piątkowski](https://wordpress.org/support/users/wckalkulator/)
 * (@wckalkulator)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/incorrect-calculation-3/#post-15978134)
 * [@montyenglish](https://wordpress.org/support/users/montyenglish/) Hi, please
   write your whole formula or better send me screen shots of your configuration.
 * The result of formula is the product price. You don’t have to multiply it by {
   quantity}
 *  Thread Starter [montyenglish](https://wordpress.org/support/users/montyenglish/)
 * (@montyenglish)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/incorrect-calculation-3/#post-15979683)
 * Thank you Krxystzof, this is the actual whole formula”
    price {quantity} * {product_price}
   How it should be instead?
 * Product price is fixed while the quantity is variable.
    Many thanks
 *  Plugin Author [Krzysztof Piątkowski](https://wordpress.org/support/users/wckalkulator/)
 * (@wckalkulator)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/incorrect-calculation-3/#post-15979759)
 * [@montyenglish](https://wordpress.org/support/users/montyenglish/) I see now.
   You named your field “quantity”, but {quantity} is reserved for default product
   quantity field (next to “add to basket” button). Use some other name, for example“
   word_qty” and your formula will be {word_qty}*{product_price}
 *  Thread Starter [montyenglish](https://wordpress.org/support/users/montyenglish/)
 * (@montyenglish)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/incorrect-calculation-3/#post-15979811)
 * I updated the field and the formula but now the price keeps being £0 rather then
   updating depending on the quantity insert. Is there anything else that I am missing?
 *  Plugin Author [Krzysztof Piątkowski](https://wordpress.org/support/users/wckalkulator/)
 * (@wckalkulator)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/incorrect-calculation-3/#post-15980143)
 * [@montyenglish](https://wordpress.org/support/users/montyenglish/) it works. 
   Just enter some number in input field and the price is updating.
 *  Thread Starter [montyenglish](https://wordpress.org/support/users/montyenglish/)
 * (@montyenglish)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/incorrect-calculation-3/#post-15980882)
 * The total price updates itself just if I click on it, is supposed to be this 
   way? But it remains £0 regardless of the input.
    [https://montyenglish.co.uk/product/proofreading-and-editing](https://montyenglish.co.uk/product/proofreading-and-editing)
 *  Thread Starter [montyenglish](https://wordpress.org/support/users/montyenglish/)
 * (@montyenglish)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/incorrect-calculation-3/#post-15992760)
 * Could you please have a look once you get a chance? Many thanks
 *  Plugin Author [Krzysztof Piątkowski](https://wordpress.org/support/users/wckalkulator/)
 * (@wckalkulator)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/incorrect-calculation-3/#post-16003188)
 * [@montyenglish](https://wordpress.org/support/users/montyenglish/) Hi, I don’t
   understand what is the problem now. You have one input field on product page,
   which is default 0. If I type “1” the price is £3,00 and it is updating.
 *  Thread Starter [montyenglish](https://wordpress.org/support/users/montyenglish/)
 * (@montyenglish)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/incorrect-calculation-3/#post-16004607)
 * So if I update the input and I type 1 or 3 etc the price stays 0, it updates 
   correctly just if the input is 1 and I press the cursor up (also I didn’t notice
   there was a cursors before), but the input remains 1… The layout doesn’t seem
   to be user-friendly and also for the client is not working as should be. Any 
   suggestion how to amend it? Otherwise we will switch to a general “ask for a 
   quote” form.
    Thanks for your support.
 *  Plugin Author [Krzysztof Piątkowski](https://wordpress.org/support/users/wckalkulator/)
 * (@wckalkulator)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/incorrect-calculation-3/#post-16004702)
 * Now I understand. POST request is sent when you leave field. I can change that
   behaviour to update price after some delay when user stays in the field.
 * You need to change styling by yourself. It is developed based on Storefront theme
 *  Thread Starter [montyenglish](https://wordpress.org/support/users/montyenglish/)
 * (@montyenglish)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/incorrect-calculation-3/#post-16004805)
 * Yes please that would be great!
 * Thank you

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

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

 * ![](https://ps.w.org/wc-kalkulator/assets/icon-256x256.gif?rev=2767665)
 * [Product Fields, Addons and Price Calculator for WooCommerce](https://wordpress.org/plugins/wc-kalkulator/)
 * [Support Threads](https://wordpress.org/support/plugin/wc-kalkulator/)
 * [Active Topics](https://wordpress.org/support/plugin/wc-kalkulator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wc-kalkulator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wc-kalkulator/reviews/)

 * 11 replies
 * 2 participants
 * Last reply from: [montyenglish](https://wordpress.org/support/users/montyenglish/)
 * Last activity: [3 years, 8 months ago](https://wordpress.org/support/topic/incorrect-calculation-3/#post-16004805)
 * Status: resolved