Skip to content

Commit

Permalink
2025 fed. tax rate adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
zcarroll4 committed Jan 19, 2025
1 parent 578b427 commit da6367d
Show file tree
Hide file tree
Showing 2 changed files with 107 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="container my-3 pt-3 border shadow">
<div class="row border-bottom">
<div class="col-12 text-center p-2">
<h1>2024 Tax Estimator Calculator</h1>
<h1>Tax Estimator Calculator</h1>
</div>
</div>
<div class="row py-1">
Expand All @@ -14,7 +14,8 @@ <h3>Tax Year</h3>
</div>
<div class="col">
<select class="form-select w-75 m-auto text-center" [disabled]="taxesCalculated" [(ngModel)]="tax_year" (ngModelChange)="saveToSessionStorage()">
<option sel>2024</option>
<option>2025</option>
<option selected>2024</option>
<option>2023</option>
<option>2022</option>
</select>
Expand Down
104 changes: 104 additions & 0 deletions src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,19 @@ export class AppComponent implements OnInit {


updateStandardDeduction() {
if (this.tax_year == 2025) {
switch (this.filing_status) {
case 'Single':
this.standard_deduction = 15000;
break;
case 'Married Filing Separately':
this.standard_deduction = 15000;
break;
case 'Married Filing Jointly':
this.standard_deduction = 30000;
break;
}
}
if (this.tax_year == 2024) {
switch (this.filing_status) {
case 'Single':
Expand Down Expand Up @@ -223,6 +236,97 @@ export class AppComponent implements OnInit {
this.calculateFica();

this.saveToCookie();
if (this.tax_year == 2025) {
if (this.filing_status == 'Single' || this.filing_status == 'Married Filing Separately') {
if (this.taxable_income > 11925) {
this.estimated_taxes = 1192.5;
if (this.taxable_income > 48475) {
this.estimated_taxes += 4386;
} else {
this.estimated_taxes += Math.round((this.taxable_income - 11925) * .12);
this.calculateTotalTaxes();
return;
}
if (this.taxable_income > 103350) {
this.estimated_taxes += 12072.5;
} else {
this.estimated_taxes += Math.round((this.taxable_income - 48475) * .22);
this.calculateTotalTaxes();
return;
}
if (this.taxable_income > 197300) {
this.estimated_taxes += 22548;
} else {
this.estimated_taxes += Math.round((this.taxable_income - 103350) * .24);
this.calculateTotalTaxes();
return;
}
if (this.taxable_income > 250525) {
this.estimated_taxes += 18628.75;
} else {
this.estimated_taxes += Math.round((this.taxable_income - 197300) * .35);
this.calculateTotalTaxes();
return;
}
if (this.taxable_income > 626350) {
this.estimated_taxes += 139055.25;
this.estimated_taxes += Math.round((this.taxable_income-626350)*.37);
} else {
this.estimated_taxes += Math.round((this.taxable_income - 250525) * .37);
this.calculateTotalTaxes();
return;
}
} else {
this.estimated_taxes = Math.round(this.taxable_income * .10);
this.calculateTotalTaxes();
return;
}
} else if (this.filing_status == 'Married Filing Jointly') {
if (this.taxable_income > 23850) {
this.estimated_taxes = 2385;
if (this.taxable_income > 96950) {
this.estimated_taxes += 8772;
} else {
this.estimated_taxes += Math.round((this.taxable_income - 23850) * .12);
this.calculateTotalTaxes();
return;
}
if (this.taxable_income > 206700) {
this.estimated_taxes += 24145;
} else {
this.estimated_taxes += Math.round((this.taxable_income - 96950) * .22);
this.calculateTotalTaxes();
return;
}
if (this.taxable_income > 394600) {
this.estimated_taxes += 45096;
} else {
this.estimated_taxes += Math.round((this.taxable_income - 206700) * .24);
this.calculateTotalTaxes();
return;
}
if (this.taxable_income > 501050) {
this.estimated_taxes += 37257.5;
} else {
this.estimated_taxes += Math.round((this.taxable_income - 394600) * .35);
this.calculateTotalTaxes();
return;
}
if (this.taxable_income > 751600) {
this.estimated_taxes += 92703.5;
this.estimated_taxes += Math.round((this.taxable_income-751600)*.37);
} else {
this.estimated_taxes += Math.round((this.taxable_income - 501050) * .37);
this.calculateTotalTaxes();
return;
}
} else {
this.estimated_taxes = Math.round(this.taxable_income * .10);
this.calculateTotalTaxes();
return;
}
}
}
if (this.tax_year == 2024) {
if (this.filing_status == 'Single' || this.filing_status == 'Married Filing Separately') {
if (this.taxable_income > 11600) {
Expand Down

0 comments on commit da6367d

Please sign in to comment.