<?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: Mateen</title>
    <description>The latest articles on DEV Community by Mateen (@mateen71).</description>
    <link>https://dev.to/mateen71</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%2F4265096%2Fccec1145-7a31-43b0-9ba4-68cad84239eb.png</url>
      <title>DEV Community: Mateen</title>
      <link>https://dev.to/mateen71</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mateen71"/>
    <language>en</language>
    <item>
      <title>Building a Privacy-First NYC Income Tax Calculator in JavaScript (No Server Tracking)</title>
      <dc:creator>Mateen</dc:creator>
      <pubDate>Thu, 26 Nov 2026 09:13:05 +0000</pubDate>
      <link>https://dev.to/mateen71/building-a-privacy-first-nyc-income-tax-calculator-in-javascript-no-server-tracking-17lb</link>
      <guid>https://dev.to/mateen71/building-a-privacy-first-nyc-income-tax-calculator-in-javascript-no-server-tracking-17lb</guid>
      <description>&lt;p&gt;When people use online paycheck or tax calculators, they are entering sensitive financial details—their exact salary, filing status, bonuses, or freelance income. Most websites send this data to a backend server, log it, or attach tracking scripts to it.&lt;/p&gt;

&lt;p&gt;While building &lt;a href="https://nycincomecalculator.com" rel="noopener noreferrer"&gt;NYC Income Tax Calculator&lt;/a&gt;&lt;strong&gt;, I wanted to take a completely different approach: **100% client-side execution&lt;/strong&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Why Client-Side Matters for Financial Tools
&lt;/h3&gt;

&lt;p&gt;Tax calculations—even complex ones involving federal brackets, Social Security caps, Medicare, New York State progressive rates, and NYC local resident taxes—are purely mathematical. They do not require a database query once the tax tables are loaded.&lt;/p&gt;

&lt;p&gt;By running the entire calculation engine directly in the user's browser using JavaScript:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Zero Data Leaves the Browser:&lt;/strong&gt; Users never have to worry about their salary data being stored or sold.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Instant Feedback:&lt;/strong&gt; Changing a filing status or adjusting a 401(k) contribution updates the take-home pay in real time with zero network latency.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Verifiable Accuracy:&lt;/strong&gt; Every rate is sourced directly from official IRS, NY State Tax Department, and NYC Department of Finance tables, and tested against automated unit tests.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Handling Edge Cases in NYC Taxes
&lt;/h3&gt;

&lt;p&gt;New York City has one of the most layered tax structures in the US. Beyond standard W-2 paychecks, different income types have very different rules:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Bonuses &amp;amp; Overtime:&lt;/strong&gt; Supplemental wages often face flat withholding rates (like 22% federal) that differ from actual year-end liability.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;1099 &amp;amp; Freelancers:&lt;/strong&gt; Self-employed individuals in the NYC metro area also have to account for the Metropolitan Commuter Transportation Mobility Tax (MCTMT) alongside self-employment taxes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Residency Rules:&lt;/strong&gt; Working in Manhattan doesn't automatically mean paying NYC resident tax—your primary residence determines it.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;To cover these scenarios cleanly without bloating a single interface, I split the suite into dedicated, lightweight tools (such as separate estimators for W-2, 1099, freelance, bonus, and capital gains).&lt;/p&gt;

&lt;p&gt;If you're working on financial web apps or want to see how fast client-side tax math runs in practice, feel free to test out the calculators at &lt;strong&gt;&lt;a href="https://nycincomecalculator.com" rel="noopener noreferrer"&gt;NYCIncomeCalculator.com&lt;/a&gt;&lt;/strong&gt;. &lt;/p&gt;

&lt;p&gt;I’d love to hear feedback from fellow devs on the UI or client-side performance!&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>javascript</category>
      <category>privacy</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
