-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
97 lines (90 loc) · 5.56 KB
/
index.html
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-KK94CHFLLe+nY2dmCWGMq91rCGa5gtU4mk92HdvYe+M/SXH301p5ILy+dN9+nJOZ" crossorigin="anonymous">
<link rel="stylesheet" href="style.css">
<title>Tax Calculator</title>
</head>
<body>
<main>
<div class="container">
<div class="row">
<div class="col-12">
<div class="row py-2 rounded-4 background-primary">
<h2 class="text-center main-h">Tax Calculator</h2>
<div class="overflow-hidden">
<div class="px-2 row text-center">
<div
class="d-flex justify-content-center align-items-center bg-white text-center rounded-4 final-amount pt-2">
<div class="d-flex justify-content-center align-items-center">
<span class="text-secondary mx-1">Your Total Income</span>
<span class="dollar mx-1">$</span>
<input type="number" value="0" id="valBox" style="width:15%" class="mx-3 custom-text amount">
<button type="button" class="mx-1 btn calculate btn-primary">Calculate</button>
<p class="mx-1 ms-3">Tax due: $</p>
<p id="final-amount" class="text-primary mx-1">0</p>
<p class="mx-1">(Effective Tax Rate: </p>
<p id="tax-perc" class="ms-1">0</p>
<p class="">%)</p>
</div>
</div>
<div class="tax-table">
<table class="table">
<thead>
<tr>
<th class="sm-text text-secondary" scope="col">Taxable Income</th>
<th class="sm-text text-secondary" scope="col">Taxes Owed</th>
</tr>
</thead>
<tbody>
<tr>
<td class="sm-text text-secondary">$0 - $11,000</td>
<td class="sm-text text-secondary">10%</td>
</tr>
<tr>
<td class="sm-text text-secondary">$11,001 - $44,725</td>
<td class="sm-text text-secondary">12%</td>
</tr>
<tr>
<td class="sm-text text-secondary">$44,726 to $95,375</td>
<td class="sm-text text-secondary">22%</td>
</tr>
<tr>
<td class="sm-text text-secondary">$95,376 to $182,100</td>
<td class="sm-text text-secondary">24%</td>
</tr>
<tr>
<td class="sm-text text-secondary">$182,101 to $231,250</td>
<td class="sm-text text-secondary">32%</td>
</tr>
<tr>
<td class="sm-text text-secondary">$231,251 to $578,125</td>
<td class="sm-text text-secondary">35%</td>
</tr>
<tr>
<td class="sm-text text-secondary">$578,126 or more</td>
<td class="sm-text text-secondary">37%</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</main>
<script src="https://code.jquery.com/jquery-3.7.0.slim.min.js"
integrity="sha256-tG5mcZUtJsZvyKAxYLVXrmjKBVLd6VpVccqz/r4ypFE=" crossorigin="anonymous"></script>
<script type="module" src="script.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js"
integrity="sha384-Y4oOpwW3duJdCWv5ly8SCFYWqFDsfob/3GkgExXKV4idmbt98QcxXYs9UoXAB7BZ"
crossorigin="anonymous"></script>
</body>
</html>