Solved

Calculate added tax cost.

Posted on 2007-03-27
3
256 Views
Last Modified: 2010-04-23
Hi Experts,

I have more of a maths question really. I know how to add tax onto an amount but how do I work it out backwards. i.e. if a product costs £3.99 including tax and the tax rate is 17.5% how do I know the cost that has been added before coming to the price of £3.99.  I am using vb.net 2005

Many Thanks
Lee
0
Comment
Question by:ljhodgett
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 7

Accepted Solution

by:
dctuck earned 500 total points
ID: 18798641
A product price including VAT is 100% of the price plus 17.5%, so you have a grand total of 117.5%.

Simply divide your figure by 117.5 and multiply by 100!

i.e. (3.99 / 117.5) * 100 = 3.40 (rounded up)
0
 
LVL 43

Expert Comment

by:TimCottee
ID: 18798652
dctuck, I think he wants the VAT amount, not the original cost

MyTax = MyPrice - (MyPrice/1.175)
0
 
LVL 7

Expert Comment

by:dctuck
ID: 18798661
Sorry, yes... You can use the same as I had put, but multiply by 17.5 instead of 100, or use TimCottee's solution which amounts to the same thing
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question