The table band is as follows
No. Salary Range New Tax Rate
1 0 – *600 * Non-Taxable
2 601 *– 1,650 10%
3 1,651 – 3,200 15%
4 3,201 – 5,250 20%
5 5,251* – 7,800 25%
6 7,801 – 10,900 30%
7 Over 10,900 35%
Is there Any one can help me? .If i get 20,000 How much I pay tax
8 1859
First, modify your table to hold numeric values: - Id Salary TaxRate
-
1 0,00 0,00%
-
2 601,00 10,00%
-
3 1.651,00 15,00%
-
4 3.201,00 20,00%
-
5 5.251,00 25,00%
-
6 7.801,00 30,00%
-
7 10.900,00 35,00%
Then look up the tax rate and perform the calculation: - YourSalary = 20000
-
-
TaxRate = DMax("[TaxRate]", "[Tax]", "[Salary] <= " & Str(YourSalary) & "")
-
YourTax = YourSalary * TaxRate
-
-
YourTax -> 7000
Rabbit 12,516
Recognized Expert Moderator MVP
@cactus, that is not how taxes are calculated. They are calculated at each step, only the remaining amount of salary leftover is calculated at the higher rate.
Perhaps. There is no single method for calculating tax.
The questioneer must provide the rules for the case in question.
Cactusdata
When i calculate in Excl The tax is 5,500 .Because the tax system is progressive tax system.
Rabbit. It is like that you understand it well.
Thank you so much all
Income per Month Tax Rate Deduction Rate
Up to 600.00 0% -
601.00 - 1,650.00 10% 60.00
1,651.00 - 3,200.00 15% 142.50
3,201.00 - 5,250.00 20% 302.50
5,251.00 - 7,800.00 25% 235.00
7,801.00 - 10,900.00 30% 955.00
Over 10,900.00 35% 1,500.00
Taxable salary is 20,000 per month. The calculation in xcel is
20,000*35*1,500 = 5,500.00
Cactusdata
I think Your formula is working if you deduct 1,500(deduction rate).Kindly include the deduction rate column in the formula and show me where i can put this formula .Can use it in query?
Sorry 20,000*35%-1,500=5,500
If so, just deduct the 1500: - YourSalary = 20000
-
-
TaxRate = DMax("[TaxRate]", "[Tax]", "[Salary] <= " & Str(YourSalary) & "")
-
YourTax = YourSalary * TaxRate - 1500
-
-
YourTax -> 5500
Of course, add a condition to set tax to zero if calculated as negative.
If you modify the table like this:
you can run a function to use the method mentioned by Rabbit: - Public Function CalculateTax(ByVal Salary As Currency) As Currency
-
-
Dim Records As DAO.Recordset
-
-
Dim Sql As String
-
Dim Tax As Currency
-
Dim ThisTax As Currency
-
Dim ThisRange As Currency
-
Dim LastRange As Currency
-
Dim LastRate As Currency
-
-
Sql = "Select Salary, TaxRate From Tax Order By 1"
-
Set Records = CurrentDb.OpenRecordset(Sql)
-
-
Debug.Print "Level", "Delta", "Rate", "Tax", "Total tax"
-
Do
-
ThisRange = Records!Salary.Value
-
If ThisRange > Salary Then
-
If LastRange > 0 Then
-
ThisRange = Salary
-
Else
-
Exit Do
-
End If
-
End If
-
' Tax of range.
-
ThisTax = (ThisRange - LastRange) * LastRate
-
Tax = Tax + ThisTax
-
Debug.Print ThisRange, ThisRange - LastRange, LastRate, ThisTax, Tax
-
LastRange = ThisRange
-
LastRate = Records!TaxRate.Value
-
Records.MoveNext
-
Loop Until Records.EOF
-
Records.Close
-
-
' Top tax.
-
ThisTax = (Salary - LastRange) * LastRate
-
Tax = Tax + ThisTax
-
Debug.Print " ~", Salary - LastRange, LastRate, ThisTax, Tax
-
-
CalculateTax = Tax
-
-
End Function
Output will be similar to: - ? CalculateTax(20000)
-
Level Delta Rate Tax Total tax
-
600 600 0 0 0
-
1650 1050 0,1 105 105
-
3200 1550 0,15 232,5 337,5
-
5250 2050 0,2 410 747,5
-
7800 2550 0,25 637,5 1385
-
10900 3100 0,3 930 2315
-
~ 9100 0,35 3185 5500
-
5500
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: carla |
last post by:
I am using Access 2000 and have a table, tblCurrent. That table
contains several fields - three of those fields are ,
and . What I want to accomplish in my data entry form, is
first entering the , then enter a if known, and lastly
have calculate the total weight of * if
Is Not Null. If I don't know the BaleWt, I will simply enter
the...
|
by: SpyderSL |
last post by:
Hey,
I have created an access form, in which I have a drop down with employee names.
These are the steps I would like to happen:
1. A user will enter a number in FIELD A
2. The user will choose an employee name from the drop down
3. A number should calculate based on the name chosen and number entered in FIELD B.
|
by: Michelle Anderson |
last post by:
I have an access form. In the form, it co ntains 3 fields : Type, hours, and Amount.
Field "Type" is a combo box and it contains 2 values: Standard and Rush
Field " Hours" is just a numeric field
Field "Amount" is a currency field.
What I try to do is if the user select Standard from the field "Type", the field "Amount" will be...
|
by: michaelw118 |
last post by:
I would like to add certain percentage of allowance based on the production run.
In excel, the formula look like this :
=IF(E5<=3000,E5*1.25,IF(E5<=6000,E5*1.15,IF(E5<=10000,E5*1.1,IF(E5<=30000,E5*1.09,IF(E5<=60000,E5*1.075,IF(E5<=100000,E5*1.06,IF(E5<=250000,E5*1.055,IF(E5<=2000000,E5*1.05))))))))
It means if the production run is <...
|
by: wish |
last post by:
Dear all;
Can someone guide me how to code out the javascript to calculate the estimate date based on the user selected date and the how long the duration in term of week.
eg. 19/9/2007 is select by user
1 weeks is duration also select by user
ans: 26/9/2007
Thanks for ur help.
| |
by: mervyn |
last post by:
Hi There,
I am very new to .NET and VB so this may be a really simple thing to solve but here is my issue
I have a a textbox with a value in it. I know what the length of the text in the text box is. I would then like to set the width of the text box (in px) to an appropriate calculated value based on the length. So, if the text length is...
|
by: Rajesh123469 |
last post by:
I have set of numbers created Like
Time numbers
00:15:00 2
00:20:00 4
01:00:00 6
-------
---
How to calculate the numbers in above 1 hour in visual basic
|
by: MNNovice |
last post by:
Calculate net amount based on conditions
________________________________________
I need to calculate a net amount that is based on FedRatio. Normally the FedRatio is set to be 80% but there are a few instances where it varies depending on a GrantNo and ProjectNo. To convert APAmount to NetAmount, I will need to incorporate these criteria.
...
|
by: rrykos1 |
last post by:
Hello,
I have been searching all ofer and can not find/figure out how to calculate the number of work days between two dates excluding holidays based on a 4, 5, 6, or 7 day workweek. I have the following code now that works for a 5 day workweek but I can not figure how to revise it to work for the 4 day, 6 day and 7 day workweeks. Any help...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| |