# Calculate VAT off Selling Price and Show in HTML Email

1. ## Calculate VAT off Selling Price and Show in HTML Email

Calculate VAT off Selling Price and Show in HTML Email

Im looking for a way to show the breakdown of VAT within an email I send -

Total Price £ - I HAVE THIS
VAT 20% £
Net Price £

Currently, my system allows me to use "drop-in" codes for address, date, invoice etc but I don't have a drop-in code for the vat (or net vat). I have one for the "total paid"

2. ## Re: Calculate VAT off Selling Price and Show in HTML Email

Good afternoon somerset-uk

With UK VAT at 20% :
• To calculate net from the selling price, multiply the selling price by 0.83333 (1 / 1.2 = 0.83333)
• To calculate VAT from the selling price, multiply the selling price by 0.16666 (0.2 / 1.2 = 0.16666)
By and large, the two resultant figures should add up to the selling price.
Occasionally, they may be out by £0.01 due to roundings, so you will need to build in a check for this.

HTH

DominicB

3. ## Re: Calculate VAT off Selling Price and Show in HTML Email

TY but its a formula for calculating that WITHIN HTML that Im after.

I have the excel code but is there a way of using that within html coding? - if JS is needed can it be contained within the HTML

4. ## Re: Calculate VAT off Selling Price and Show in HTML Email

##### Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1