๐—ช๐—ต๐—ฎ๐˜ ๐—œ ๐—Ÿ๐—ฒ๐—ฎ๐—ฟ๐—ป๐—ฒ๐—ฑ ๐—•๐˜‚๐—ถ๐—น๐—ฑ๐—ถ๐—ป๐—ด ๐—ฎ๐—ป ๐—”๐—ณ๐˜๐—ฒ๐—ฟ-๐—ง๐—ฎ๐˜… ๐—ฅ๐—ฎ๐—ถ๐˜€๐—ฒ ๐—–๐—ฎ๐—น๐—ฐ๐˜‚๐—น๐—ฎ๐˜๐—ผ๐—ฟ

I got a raise recently. I multiplied my salary by 1.05 and expected a specific jump in my paycheck. I was wrong. The actual money in my bank account was much lower.

I built a TypeScript calculator to understand why. I found three main reasons why simple math fails you.

One example: An $80,000 salary with a 5% raise. โ€ข Gross raise: $4,000 โ€ข Federal tax (22% marginal): -$880 โ€ข FICA tax: -$306 โ€ข Net raise: $2,814

You keep about 70% of the raise. The $4,000 headline never hits your account.

The most important number is your real raise. You must account for inflation to see if you are actually richer. If inflation is 3.3% and your raise is 5%, you are not 1.7% richer. The math is multiplicative.

The real math: ((1 + nominal_raise) / (1 + inflation)) - 1.

In this case, your real raise is 1.6%. If your raise is lower than inflation, you took a pay cut.

A technical lesson for developers: Never type the same number twice. I used to hardcode tax rates in my text. This caused errors. Now, I use one constants module. Every number on my site comes from the same code. If a number exists in two places, it is already wrong.

Source: https://dev.to/mark_b5f4ffdd8e7cd58/what-i-learned-building-an-after-tax-raise-calculator-485h