Home All Groups Group Topic Archive Search About

Tax calculation net to gross.

Author
28 Jul 2005 4:53 PM
Martin
Hi everyone,

I'm looking for some help on a tax calculation.

I want to enter the net amount the person has to receive and the gross
amount should be calculated.

I want to use the calculation in a query so it can make the calculation for
each person.

Any suggestion or examples how i can make the calculations?

TIA,

Martin.

Author
28 Jul 2005 6:51 PM
Aaron Bertrand [SQL Server MVP]
Well, what's the tax rate?  Do you have any DDL, sample data, desired
results?



Show quote
"Martin" <jk***@hotmail.com> wrote in message
news:%23l$KkT5kFHA.4028@TK2MSFTNGP10.phx.gbl...
> Hi everyone,
>
> I'm looking for some help on a tax calculation.
>
> I want to enter the net amount the person has to receive and the gross
> amount should be calculated.
>
> I want to use the calculation in a query so it can make the calculation
> for
> each person.
>
> Any suggestion or examples how i can make the calculations?
>
> TIA,
>
> Martin.
>
>
Author
28 Jul 2005 7:11 PM
Michael C#
Not sure if you're asking how to calculate the total bill for someone, but
here's the formula for that:

Total_Amount = Sub_Total * (1.0 + Tax_Rate)

Note that Tax_Rate is a fraction representing a percentage (i.e., 6% =
"0.06").  Or maybe you're asking how to calculate the amount of tax based on
the Total bill?

Tax_Amount = TotalAmount - (TotalAmount / (1.0 + Tax_Rate))

If you can supply DDL, Sample Data, Expected Results and a clearer
description of what you're trying to achieve, it will be helpful.

Show quote
"Martin" <jk***@hotmail.com> wrote in message
news:%23l$KkT5kFHA.4028@TK2MSFTNGP10.phx.gbl...
> Hi everyone,
>
> I'm looking for some help on a tax calculation.
>
> I want to enter the net amount the person has to receive and the gross
> amount should be calculated.
>
> I want to use the calculation in a query so it can make the calculation
> for
> each person.
>
> Any suggestion or examples how i can make the calculations?
>
> TIA,
>
> Martin.
>
>

AddThis Social Bookmark Button