Answers.Body: <p>Sales Taxes in CiviCRM are added on checkout - so if you want to get to nice rounded numbers you may need to give your participant_fee a few more decimals. </p>
  
  <p>Glad that worked for you Ben!</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-09-18T06:47:44.593Z
Answers.Text: Hi @KarinG - I am having the same issue on CiviCRM 5.5. The amount for unit price is $58 inclusive of GST 5.27 - It works fine when the unit is 1 but if I add 2 it becomes 116.01. Is this still a bug in CiviCRM?
Answers.UserDisplayName: Sohal Khatwani
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-07-17T11:50:05.580Z
Answers.LastActivityDate: 2018-07-17T11:50:05.580Z
Answers.UserDisplayName: KarinG - Semper IT
Body: <p>I have setup a webform to take registrations and payments for events. I have enabled tax to be 10% and have calculated the cost of each event to be 10% less, so Civi will add on the tax to each line item (i assume that this is the only way Civi Tax works). The total is $0.1 by out. Here is why:</p>
  
  <p>$75 - 10% = $68.18 (I have set the Participant Fee to $68.18)</p>
  
  <p>$68.18 * 3 events = 204.54
  Add the tax: 204.54 * 0.1 = 20.454 ($20.45, rounded)</p>
  
  <p>$20.45 + 204.54 = $224.99</p>
  
  <p><a href="https://i.sstatic.net/JdC1n.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/JdC1n.jpg" alt="enter image description here"></a></p>
  
  <p>Edit: Seems like a similar issue to <a href="https://github.com/civicrm/civicrm-core/pull/9711" rel="nofollow noreferrer">https://github.com/civicrm/civicrm-core/pull/9711</a> &amp; <a href="https://github.com/civicrm/civicrm-core/pull/9710" rel="nofollow noreferrer">https://github.com/civicrm/civicrm-core/pull/9710</a></p>
  
  <p>Are these patches still relevant?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-07-16T13:30:42.360Z
Comments.Text: Two quick thoughts: That does not look like the latest webform_civicrm? Also $75 -10% is $67.50 -> but I get that you need $68.18 -> have you tried giving participant fee two more decimals?
Comments.UserDisplayName: KarinG - Semper IT
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-07-17T07:37:13.423Z
Comments.Text: CMS/Civi/webform_civicrm are up to date. Adding 2 more decimals fixed the issue when duplicating the last 2 decimals. ie: 68.18 = 68.1818. Thanks KarinG.
Comments.UserDisplayName: Ben
Tags: <webform-civicrm><taxes>
Title: payment page - total not correct when using Tax
ThreadText: # payment page - total not correct when using Tax
  
  (Asked by: username_0 on 2018-07-16)
  
  I have setup a webform to take registrations and payments for events. I have enabled tax to be 10% and have calculated the cost of each event to be 10% less, so Civi will add on the tax to each line item (i assume that this is the only way Civi Tax works). The total is $0.1 by out. Here is why:
  
  $75 - 10% = $68.18 (I have set the Participant Fee to $68.18)
  
  $68.18 \* 3 events = 204.54
  Add the tax: 204.54 \* 0.1 = 20.454 ($20.45, rounded)
  
  $20.45 + 204.54 = $224.99
  
  [![enter image description here](https://i.sstatic.net/JdC1n.jpg)](https://i.sstatic.net/JdC1n.jpg)
  
  Edit: Seems like a similar issue to <https://github.com/civicrm/civicrm-core/pull/9711> & <https://github.com/civicrm/civicrm-core/pull/9710>
  
  Are these patches still relevant?
  
  **Tags:** webform-civicrm, taxes
  
  > **Comments:**
  > **username_1**: Two quick thoughts: That does not look like the latest webform_civicrm? Also $75 -10% is $67.50 -> but I get that you need $68.18 -> have you tried giving participant fee two more decimals?  
  > **username_0**: CMS/Civi/webform_civicrm are up to date. Adding 2 more decimals fixed the issue when duplicating the last 2 decimals. ie: 68.18 = 68.1818. Thanks username_1.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2018-07-17. Score: 1 | Accepted answer
  
  Sales Taxes in CiviCRM are added on checkout - so if you want to get to nice rounded numbers you may need to give your participant\_fee a few more decimals.
  
  Glad that worked for you Ben!
  
  > **Comments:**
  > **username_2**: Hi @username_1 - I am having the same issue on CiviCRM 5.5. The amount for unit price is $58 inclusive of GST 5.27 - It works fine when the unit is 1 but if I add 2 it becomes 116.01. Is this still a bug in CiviCRM?  
  
  ---
  
  