-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
69 lines (61 loc) · 3.44 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
import os
def taxes():
status = int(input("Enter 1 for Single\n Enter 2 for Married Filing Jointly or Qualifying Widow(er)\n "
"Enter 3 for Married Filing Separately\n Enter 4 for Head of Household\n "))
income = int(input("Enter your Taxable Income\n"))
if (status == 1 or status == 3) and ((income >0) and (income <=8350)):
taxdue= income*(10/100)
print(f"Your Tax rate is 10% and Your Tax Amount is ${taxdue}")
elif (status == 1 or status == 3) and ((income >=8351) and (income <=33950)):
taxdue = income * (15 / 100)
print(f"Your Tax rate is 15% and Your Tax Amount is ${taxdue}")
elif (status == 1 or status == 3) and ((income >= 33951) and (income <= 82250)):
taxdue = income * (25 / 100)
print(f"Your Tax rate is 25% and Your Tax Amount is ${taxdue}")
elif (status == 1 or status == 3) and ((income >=82251) and (income <=171550)):
taxdue = income * (28 / 100)
print(f"Your Tax rate is 28% and Your Tax Amount is ${taxdue}")
elif (status == 1 or status == 3) and ((income >=171551) and (income <=372950)):
taxdue = income * (33 / 100)
print(f"Your Tax rate is 33% and Your Tax Amount is ${taxdue}")
elif (status == 1 or status == 3) and (income >=372951):
taxdue = income * (35 / 100)
print(f"Your Tax rate is 35% and Your Tax Amount is ${taxdue}")
elif (status == 2) and ((income > 0) and (income <=16700)):
taxdue = income * (10 / 100)
print(f"Your Tax rate is 10% and Your Tax Amount is ${taxdue}")
elif (status == 2) and ((income >=16701) and (income <=67900)):
taxdue = income * (15 / 100)
print(f"Your Tax rate is 15% and Your Tax Amount is ${taxdue}")
elif (status == 2) and ((income >=67901) and (income <=137050)):
taxdue = income * (25 / 100)
print(f"Your Tax rate is 25% and Your Tax Amount is ${taxdue}")
elif (status == 2) and ((income >=137051) and (income <=208850)):
taxdue = income * (28 / 100)
print(f"Your Tax rate is 28% and Your Tax Amount is ${taxdue}")
elif (status == 2) and ((income >=171551) and (income <=372950)):
taxdue = income * (33 / 100)
print(f"Your Tax rate is 33% and Your Tax Amount is ${taxdue}")
elif (status == 2) and (income >=372951):
taxdue = income * (35 / 100)
print(f"Your Tax rate is 35% and Your Tax Amount is ${taxdue}")
elif (status == 4) and ((income >=0) and (income <=11950)):
taxdue = income * (10 / 100)
print(f"Your Tax rate is 10% and Your Tax Amount is ${taxdue}")
elif (status == 4) and ((income >=11951) and (income <=45500)):
taxdue = income * (15 / 100)
print(f"Your Tax rate is 15% and Your Tax Amount is ${taxdue}")
elif (status == 4) and ((income >=45501) and (income <=117450)):
taxdue = income * (25 / 100)
print(f"Your Tax rate is 25% and Your Tax Amount is ${taxdue}")
elif (status == 4) and ((income >=117451) and (income <=190200)):
taxdue = income * (28 / 100)
print(f"Your Tax rate is 28% and Your Tax Amount is ${taxdue}")
elif (status == 4) and ((income >=190201) and (income <=372950)):
taxdue = income * (33 / 100)
print(f"Your Tax rate is 33% and Your Tax Amount is ${taxdue}")
elif (status == 4) and (income >=372951):
taxdue = income * (35 / 100)
print(f"Your Tax rate is 35% and Your Tax Amount is ${taxdue}")
if __name__ == '__main__':
taxes()