[Skip to main content](#vessel-content)

#   Incorrect tax calculation

##

- **[Jacek.sikora](/forum/user/55517-jacek-sikora "View Jacek.sikora's Profile")**
- [![Jacek.sikora's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/55517-jacek-sikora "View Jacek.sikora's Profile") Topic Author
- [ Offline](/forum/user/55517-jacek-sikora)

Less More

- Posts: 10
- Thank you received: 1
-
-

8 years 8 months ago [\#290269](#290269) by [Jacek.sikora](/forum/user/55517-jacek-sikora "View Jacek.sikora's Profile")  *[Incorrect tax calculation](/forum/26-product-category-display/894244-incorrect-tax-calculation#290269 "-- url of the page with the problem -- :   dev.vitberg.pl/aparat-ram-vitberg-plus  -- HikaShop version -- : 3.4.0 -- Joomla version -- : 3.8.6 -- PHP version -- : 7.2  Hello  I've got a taxes set-up at 8%. An item is priced at 10 (including taxes)  At checkout it says:  Order value 10,00 PLN (correct) Shipping 0,00 PLN (correct) VAT 8% 0,74 PLN it should be 0,80PLN Total 10,00 PLN (correct)  Why oh why it calculates the taxes wrong? It can't be rounding, there's nothing to round....  I looked everywhere, checked everything and still I'm no smarter than I was few hours ago, any pointers?  Thanks. Przemek")* was created by *[Jacek.sikora](/forum/user/55517-jacek-sikora "View Jacek.sikora's Profile")*

-- url of the page with the problem -- : [ dev.vitberg.pl/aparat-ram-vitberg-plus](https://dev.vitberg.pl/aparat-ram-vitberg-plus)
-- HikaShop version -- : 3.4.0
-- Joomla version -- : 3.8.6
-- PHP version -- : 7.2

Hello

I've got a taxes set-up at 8%.
An item is priced at 10 (including taxes)

At checkout it says:

Order value 10,00 PLN (correct)
Shipping 0,00 PLN (correct)
VAT 8% 0,74 PLN INCORRECT it should be 0,80PLN
Total 10,00 PLN (correct)

Why oh why it calculates the taxes wrong? It can't be rounding, there's nothing to round....

I looked everywhere, checked everything and still I'm no smarter than I was few hours ago, any pointers?

Thanks.
Przemek

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTQyNDQtaW5jb3JyZWN0LXRheC1jYWxjdWxhdGlvbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

8 years 8 months ago [\#290273](#290273) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Incorrect tax calculation](/forum/26-product-category-display/894244-incorrect-tax-calculation#290273 "-- url of the page with the problem -- :   dev.vitberg.pl/aparat-ram-vitberg-plus  -- HikaShop version -- : 3.4.0 -- Joomla version -- : 3.8.6 -- PHP version -- : 7.2  Hello  I've got a taxes set-up at 8%. An item is priced at 10 (including taxes)  At checkout it says:  Order value 10,00 PLN (correct) Shipping 0,00 PLN (correct) VAT 8% 0,74 PLN it should be 0,80PLN Total 10,00 PLN (correct)  Why oh why it calculates the taxes wrong? It can't be rounding, there's nothing to round....  I looked everywhere, checked everything and still I'm no smarter than I was few hours ago, any pointers?  Thanks. Przemek")*

Hi,

There is actually no error.
The taxes percentage is ALWAYS calculated out of the untaxed price.
So the taxes would be 0.8 PLN only if the untaxed price was 10 PLN.
Since you want a taxed price of 10 PLN, then the algorithm has to calculate the taxes so that the untaxed amount + the taxes equals the taxed amount:
untaxed + untaxed * 0.08 = untaxed + taxes = taxed amount
So you get untaxed + untaxed 0.08 = 10 =&gt; untaxed * 1.08 = 10 =&gt; untaxed = 10/1.08 = 9.26
And thus the taxes are equal to 10 - 9.26 = 0.74

Try to look at the tax amount of something costing 10 PLN with taxes in your supermarket and you'll see that the tax amount is calculated the same way.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTQyNDQtaW5jb3JyZWN0LXRheC1jYWxjdWxhdGlvbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jacek.sikora](/forum/user/55517-jacek-sikora "View Jacek.sikora's Profile")**
- [![Jacek.sikora's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/55517-jacek-sikora "View Jacek.sikora's Profile") Topic Author
- [ Offline](/forum/user/55517-jacek-sikora)

Less More

- Posts: 10
- Thank you received: 1
-
-

8 years 8 months ago [\#290297](#290297) by [Jacek.sikora](/forum/user/55517-jacek-sikora "View Jacek.sikora's Profile")  Replied by *[Jacek.sikora](/forum/user/55517-jacek-sikora "View Jacek.sikora's Profile")* on topic *[Incorrect tax calculation](/forum/26-product-category-display/894244-incorrect-tax-calculation#290297 "-- url of the page with the problem -- :   dev.vitberg.pl/aparat-ram-vitberg-plus  -- HikaShop version -- : 3.4.0 -- Joomla version -- : 3.8.6 -- PHP version -- : 7.2  Hello  I've got a taxes set-up at 8%. An item is priced at 10 (including taxes)  At checkout it says:  Order value 10,00 PLN (correct) Shipping 0,00 PLN (correct) VAT 8% 0,74 PLN it should be 0,80PLN Total 10,00 PLN (correct)  Why oh why it calculates the taxes wrong? It can't be rounding, there's nothing to round....  I looked everywhere, checked everything and still I'm no smarter than I was few hours ago, any pointers?  Thanks. Przemek")*

....

You're totally correct.

I never thought of that, just assumed that I could calculate "backwards".

Thanks!

Przemek

The following user(s) said Thank You: [Philip](/forum/user/34318-philip "View Philip's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTQyNDQtaW5jb3JyZWN0LXRheC1jYWxjdWxhdGlvbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.074 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
