<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Faishal</title>
    <description>The latest articles on DEV Community by Faishal (@salarypaytools).</description>
    <link>https://dev.to/salarypaytools</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4216703%2F9aa7b180-4897-4251-b977-2f236f0aa957.png</url>
      <title>DEV Community: Faishal</title>
      <link>https://dev.to/salarypaytools</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/salarypaytools"/>
    <language>en</language>
    <item>
      <title>How much of a work bonus do you actually keep? The 22% withholding math</title>
      <dc:creator>Faishal</dc:creator>
      <pubDate>Sat, 07 Nov 2026 15:58:55 +0000</pubDate>
      <link>https://dev.to/salarypaytools/how-much-of-a-work-bonus-do-you-actually-keep-the-22-withholding-math-1210</link>
      <guid>https://dev.to/salarypaytools/how-much-of-a-work-bonus-do-you-actually-keep-the-22-withholding-math-1210</guid>
      <description>&lt;p&gt;A bonus check almost always looks smaller than the number your boss quoted. That is not a mistake. It is withholding, and the math is simple enough to put in a function.&lt;/p&gt;

&lt;p&gt;I added a bonus estimator to &lt;a href="https://salarypaytools.com/" rel="noopener noreferrer"&gt;SalaryPayTools&lt;/a&gt;, a small site of free US pay calculators. Here is what it models and why.&lt;/p&gt;

&lt;h2&gt;
  
  
  The three pieces of a bonus check
&lt;/h2&gt;

&lt;p&gt;For a separately paid cash bonus (US W-2, 2026), the estimate has three parts:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Federal income tax withholding.&lt;/strong&gt; Many employers use the optional flat percentage method for supplemental wages: 22% up to $1 million in the calendar year, 37% on the part above that.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Social Security.&lt;/strong&gt; 6.2% up to the 2026 taxable maximum of $184,500.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Medicare.&lt;/strong&gt; 1.45% on all covered wages, plus an extra 0.9% on wages above $200,000.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;State and local withholding vary too much to guess, so the calculator takes an optional percentage from you instead of picking one from your location.&lt;/p&gt;

&lt;h2&gt;
  
  
  Worked example
&lt;/h2&gt;

&lt;p&gt;A $10,000 bonus, $60,000 already earned this year, no state withholding:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Gross&lt;/th&gt;
&lt;th&gt;Federal 22%&lt;/th&gt;
&lt;th&gt;FICA 7.65%&lt;/th&gt;
&lt;th&gt;You receive&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;$1,000&lt;/td&gt;
&lt;td&gt;$220&lt;/td&gt;
&lt;td&gt;$76.50&lt;/td&gt;
&lt;td&gt;$703.50&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;$5,000&lt;/td&gt;
&lt;td&gt;$1,100&lt;/td&gt;
&lt;td&gt;$382.50&lt;/td&gt;
&lt;td&gt;$3,517.50&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;$10,000&lt;/td&gt;
&lt;td&gt;$2,200&lt;/td&gt;
&lt;td&gt;$765&lt;/td&gt;
&lt;td&gt;$7,035&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;$20,000&lt;/td&gt;
&lt;td&gt;$4,400&lt;/td&gt;
&lt;td&gt;$1,530&lt;/td&gt;
&lt;td&gt;$14,070&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;So a $10,000 bonus lands around $7,035, or 70.35%.&lt;/p&gt;

&lt;h2&gt;
  
  
  The core logic
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;FEDERAL_RATE&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mf"&gt;0.22&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;FEDERAL_HIGH_RATE&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mf"&gt;0.37&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// above $1M supplemental wages&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;SS_RATE&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mf"&gt;0.062&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;SS_CAP&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;184&lt;/span&gt;&lt;span class="nx"&gt;_500&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;MEDICARE_RATE&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mf"&gt;0.0145&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;bonusAfterTax&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="nx"&gt;bonus&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kr"&gt;number&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nx"&gt;priorSupplemental&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nx"&gt;ssWagesYtd&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nx"&gt;statePct&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;lowPart&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;Math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;max&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;Math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;min&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;bonus&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="nx"&gt;_000_000&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="nx"&gt;priorSupplemental&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;highPart&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;bonus&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="nx"&gt;lowPart&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;federal&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;lowPart&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="nx"&gt;FEDERAL_RATE&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="nx"&gt;highPart&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="nx"&gt;FEDERAL_HIGH_RATE&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;ssBase&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;Math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;max&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;Math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;min&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;bonus&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;SS_CAP&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="nx"&gt;ssWagesYtd&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;ss&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;ssBase&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="nx"&gt;SS_RATE&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;medicare&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;bonus&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="nx"&gt;MEDICARE_RATE&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;state&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;bonus&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;statePct&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nx"&gt;bonus&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="nx"&gt;federal&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="nx"&gt;ss&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="nx"&gt;medicare&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="nx"&gt;state&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;(A simplified sketch of the idea, not the site's exact code. The additional 0.9% Medicare is left out here.)&lt;/p&gt;

&lt;h2&gt;
  
  
  The thing people get wrong
&lt;/h2&gt;

&lt;p&gt;The "22% bonus tax" is a withholding procedure, not a special tax bracket. At filing time your bonus is taxed like the rest of your income, so you can be over-withheld or under-withheld. Some payroll systems also use the aggregate method, which this model does not cover.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;p&gt;You can play with the numbers here: &lt;a href="https://salarypaytools.com/tax-and-bonus-calculator/" rel="noopener noreferrer"&gt;Tax and Bonus Calculator&lt;/a&gt;. It is an estimate, not tax advice.&lt;/p&gt;

</description>
      <category>tutorial</category>
      <category>typescript</category>
      <category>javascript</category>
    </item>
    <item>
      <title>New York vs Texas Paycheck: What the State Tax Difference Really Is</title>
      <dc:creator>Faishal</dc:creator>
      <pubDate>Sat, 31 Oct 2026 04:53:45 +0000</pubDate>
      <link>https://dev.to/salarypaytools/new-york-vs-texas-paycheck-what-the-state-tax-difference-really-is-3p24</link>
      <guid>https://dev.to/salarypaytools/new-york-vs-texas-paycheck-what-the-state-tax-difference-really-is-3p24</guid>
      <description>&lt;p&gt;"Move to Texas, there's no state income tax" is one of those bits of advice everyone has heard. But how much bigger is a Texas paycheck than a New York one, really? I ran the same salaries through both calculators on SalaryPayTools to put an actual number on it.&lt;/p&gt;

&lt;p&gt;Settings for every example below: single filer, paid biweekly (26 checks a year), standard W-4, no 401(k) or insurance deductions.&lt;/p&gt;

&lt;h2&gt;
  
  
  At $75,000
&lt;/h2&gt;

&lt;p&gt;Each paycheck starts at $2,884.62 gross in both states. Federal withholding ($295.00), Social Security ($178.85) and Medicare ($41.83) are identical, because those are federal. The only difference is the state line.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;New York:&lt;/strong&gt; take-home about &lt;strong&gt;$2,236.13&lt;/strong&gt; per check, after an estimated $132.81 of state income tax&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Texas:&lt;/strong&gt; take-home about &lt;strong&gt;$2,368.94&lt;/strong&gt; per check, with $0 state income tax&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That's a gap of $132.81 per paycheck, or about &lt;strong&gt;$3,450 a year&lt;/strong&gt;. Put another way, New York State tax works out to roughly 4.6% of a $75,000 salary in this example.&lt;/p&gt;

&lt;p&gt;You can check these on the &lt;a href="https://salarypaytools.com/new-york-paycheck-calculator/" rel="noopener noreferrer"&gt;New York paycheck calculator&lt;/a&gt; and the &lt;a href="https://salarypaytools.com/texas-paycheck-calculator/" rel="noopener noreferrer"&gt;Texas paycheck calculator&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  At $100,000
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;New York:&lt;/strong&gt; about &lt;strong&gt;$2,858.47&lt;/strong&gt; per check (estimated state tax $186.91)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Texas:&lt;/strong&gt; about &lt;strong&gt;$3,045.38&lt;/strong&gt; per check&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The gap grows to about $187 a paycheck, or roughly &lt;strong&gt;$4,860 a year&lt;/strong&gt;, about 4.9% of salary.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why the difference is smaller than the headline rate
&lt;/h2&gt;

&lt;p&gt;New York's top state rate is around 10.9%, which sounds dramatic. But New York uses graduated brackets, and the top rates only apply to very high incomes. For most salaried workers, the first chunks of income are taxed at roughly 4% to 6%, and the standard deduction shields part of your pay entirely. So the effective rate on a middle-class salary ends up in the 4% to 5% range, not 10%.&lt;/p&gt;

&lt;h2&gt;
  
  
  What these numbers leave out (and it matters)
&lt;/h2&gt;

&lt;p&gt;Here's the honest part. The comparison above is state income tax only, and the New York side has a few extra costs that can widen the gap:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;New York City income tax.&lt;/strong&gt; If you live in NYC, the city adds its own income tax on top, roughly 3% to 4% for most earners. Yonkers has its own surcharge too. My calculator excludes local taxes, so a NYC resident should expect a noticeably smaller check than the New York figure above.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Disability and Paid Family Leave.&lt;/strong&gt; Most New York employers deduct small amounts for state disability insurance and Paid Family Leave. These are usually modest, but they're there.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Commuters.&lt;/strong&gt; If you live in New Jersey or Connecticut and work in New York, the tax rules get more complicated, because you'll typically file in both states.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;On the Texas side, the paycheck really is that simple: no state income tax and, for regular employees, no state payroll deductions.&lt;/p&gt;

&lt;h2&gt;
  
  
  The paycheck isn't the whole budget
&lt;/h2&gt;

&lt;p&gt;A $3,000 to $5,000 yearly difference is real, but it rarely decides a move by itself. Texas makes up some of its revenue with property taxes that are among the higher ones in the country, which shows up in rent and home prices. New York salaries in many fields also run higher for the same role. The fair comparison is take-home pay minus your biggest costs (housing, transport, insurance), not just take-home pay.&lt;/p&gt;

&lt;h2&gt;
  
  
  How I'd compare two offers
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Run each salary through its own state calculator, not just the same salary in both states. A $75,000 offer in Austin versus an $85,000 offer in Albany is the more realistic question.&lt;/li&gt;
&lt;li&gt;Subtract the 401(k) and insurance you'd actually have at each job.&lt;/li&gt;
&lt;li&gt;If the New York job is in the city, knock off another 3% to 4% for city tax.&lt;/li&gt;
&lt;li&gt;Compare the monthly result with real rent listings in both places.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;That gives you a number you can trust a lot more than "no income tax" on its own.&lt;/p&gt;

&lt;p&gt;If you want to try other combinations, there are calculators for 14 states on &lt;a href="https://salarypaytools.com/" rel="noopener noreferrer"&gt;SalaryPayTools&lt;/a&gt;, all using the same 2026 federal rules so the comparisons stay apples to apples.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Figures come from the SalaryPayTools New York and Texas calculators (2026 rules, single, biweekly). They're estimates, not tax advice, and exclude local taxes and pre-tax deductions.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Faishal Ali&lt;/p&gt;

</description>
    </item>
    <item>
      <title>How I built a set of free salary calculators with React, Vite and TypeScript</title>
      <dc:creator>Faishal</dc:creator>
      <pubDate>Fri, 30 Oct 2026 07:50:16 +0000</pubDate>
      <link>https://dev.to/salarypaytools/how-i-built-a-set-of-free-salary-calculators-with-react-vite-and-typescript-9ih</link>
      <guid>https://dev.to/salarypaytools/how-i-built-a-set-of-free-salary-calculators-with-react-vite-and-typescript-9ih</guid>
      <description>&lt;p&gt;I recently built &lt;a href="https://salarypaytools.com/" rel="noopener noreferrer"&gt;SalaryPayTools&lt;/a&gt;, a small site of free US pay calculators. Here is a short write-up of how it is put together and what I learned.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it does
&lt;/h2&gt;

&lt;p&gt;There are 14 calculators: hourly to salary and salary to hourly, annual income, weekly, biweekly and monthly pay, part-time pay, overtime, pay raise, a basic 2026 federal income tax estimate, and 2026 take-home pay for four states (Texas, Arkansas, Illinois and North Carolina). They are free and need no signup.&lt;/p&gt;

&lt;h2&gt;
  
  
  The stack
&lt;/h2&gt;

&lt;p&gt;React + Vite + TypeScript. Vite keeps the dev loop fast, and TypeScript helps because many pay-calculator bugs are unit mix-ups: hourly vs. annual, weekly vs. biweekly, a percentage stored as 5 instead of 0.05.&lt;/p&gt;

&lt;h2&gt;
  
  
  Keep the math in plain functions
&lt;/h2&gt;

&lt;p&gt;The calculators are mostly forms on top of small, pure functions. A simplified sketch of the idea (not the site's exact code):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;type&lt;/span&gt; &lt;span class="nx"&gt;HourlyInput&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="na"&gt;rate&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kr"&gt;number&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;hoursPerWeek&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kr"&gt;number&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;weeksPerYear&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kr"&gt;number&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;overtimeHours&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kr"&gt;number&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;overtimeMultiplier&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kr"&gt;number&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// 1.5 for time-and-a-half&lt;/span&gt;
&lt;span class="p"&gt;};&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;annualGross&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;i&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;HourlyInput&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt; &lt;span class="kr"&gt;number&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;weekly&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;
    &lt;span class="nx"&gt;i&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;rate&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="nx"&gt;i&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;hoursPerWeek&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt;
    &lt;span class="nx"&gt;i&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;rate&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="nx"&gt;i&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;overtimeHours&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="nx"&gt;i&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;overtimeMultiplier&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nx"&gt;weekly&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="nx"&gt;i&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;weeksPerYear&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Functions like this are easy to test with known answers before any UI exists. For example, $20 an hour × 40 hours × 52 weeks should always give $41,600.&lt;/p&gt;

&lt;h2&gt;
  
  
  Show the formula next to the answer
&lt;/h2&gt;

&lt;p&gt;Every result on the site shows how it was calculated, e.g. &lt;code&gt;($20.00 × 40) × 52 paid weeks&lt;/code&gt;. A number you can't check is hard to trust, so the formula is always right there.&lt;/p&gt;

&lt;h2&gt;
  
  
  One page per calculator
&lt;/h2&gt;

&lt;p&gt;Each calculator has its own URL and its own HTML page with the content already in it, so the page isn't empty before JavaScript loads. That helps both search engines and slow phones.&lt;/p&gt;

&lt;h2&gt;
  
  
  Be clear about scope
&lt;/h2&gt;

&lt;p&gt;The federal tax tool is a basic estimate, and take-home pay is only for the four states above. I'd rather say that plainly than pretend to cover everything.&lt;/p&gt;

&lt;p&gt;If you want to try it or check my math: &lt;a href="https://salarypaytools.com/" rel="noopener noreferrer"&gt;salarypaytools.com&lt;/a&gt;. Feedback is welcome.&lt;/p&gt;

</description>
      <category>react</category>
      <category>typescript</category>
      <category>vite</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
