Skip to content

Commit

Permalink
Update constants with 2025 values. (#376)
Browse files Browse the repository at this point in the history
* Update constants with 2025 values.

* update the last update date
  • Loading branch information
Gregable authored Oct 12, 2024
1 parent cc38323 commit 0c6a552
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/lib/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const MAX_CREDITS: number = 40;
* manually manipulates the input string.
* @type {number}
*/
export const MAX_YEAR: number = 2024;
export const MAX_YEAR: number = 2025;

/**
* For years before 1978, an individual was credited with a quarter of coverage
Expand Down Expand Up @@ -87,6 +87,7 @@ export const EARNINGS_PER_CREDIT: { [key: number]: Money } = {
2022: Money.from(1510),
2023: Money.from(1640),
2024: Money.from(1730),
2025: Money.from(1810),
};

export const MAX_EARNINGS_PER_CREDIT: number = Math.max(
Expand Down Expand Up @@ -186,6 +187,7 @@ export const MAXIMUM_EARNINGS: { [key: number]: Money } = {
2022: Money.from(147000),
2023: Money.from(160200),
2024: Money.from(168600),
2025: Money.from(176100),
};
/**
* Earliest Year for which we have data for the maximum earnings.
Expand Down Expand Up @@ -274,6 +276,7 @@ export const TAX_RATES: { [key: number]: number } = {
2022: 0.053,
2023: 0.053,
2024: 0.053,
2025: 0.053,
};

// Values from https://www.ssa.gov/oact/cola/piaformula.html
Expand Down Expand Up @@ -367,6 +370,7 @@ export const WAGE_INDICES: { [key: number]: Money } = {
2020: Money.from(55628.6),
2021: Money.from(60575.07),
2022: Money.from(63795.13),
2023: Money.from(66621.8),
};
/**
* The minimum year for which we have wage index data.
Expand Down Expand Up @@ -435,6 +439,7 @@ export const COLA: { [key: number]: number } = {
2021: 5.9,
2022: 8.7,
2023: 3.2,
2024: 2.5,
};

/**
Expand Down
2 changes: 1 addition & 1 deletion src/routes/about/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
be made after researching the subject yourself.
</p>
<p>
The site was most recently updated on Oct 12, 2023 with the latest 3.2%
The site was most recently updated on Oct 12, 2024 with the latest 2.5%
COLA adjustment.
</p>
<h3>Why?</h3>
Expand Down

0 comments on commit 0c6a552

Please sign in to comment.