<?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: 1</title>
    <description>The latest articles on DEV Community by 1 (@1526422010).</description>
    <link>https://dev.to/1526422010</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%2F4191216%2F7898085e-6f10-47cc-bfb7-ecd314e2c4c3.jpg</url>
      <title>DEV Community: 1</title>
      <link>https://dev.to/1526422010</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/1526422010"/>
    <language>en</language>
    <item>
      <title>I Shipped 2,000+ Free Calculators With Zero Backend. Here's What I Learned.</title>
      <dc:creator>1</dc:creator>
      <pubDate>Sat, 17 Oct 2026 22:24:53 +0000</pubDate>
      <link>https://dev.to/1526422010/i-shipped-2000-free-calculators-with-zero-backend-heres-what-i-learned-1pij</link>
      <guid>https://dev.to/1526422010/i-shipped-2000-free-calculators-with-zero-backend-heres-what-i-learned-1pij</guid>
      <description>&lt;p&gt;When people hear "calculator website," they picture one page with a few inputs. Mine has over two thousand calculator pages — income tax, loan installments, BMI, unit conversions — all running on pure client-side JavaScript. No backend, no database, no tracking, no signup.&lt;/p&gt;

&lt;p&gt;Building it taught me a few things that generalize well beyond calculators.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;A calculator is a formula plus trust&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Nobody bookmarks a calculator because of its design. They come back because the number was right. That makes correctness the actual product.&lt;/p&gt;

&lt;p&gt;Every formula on the site is validated against an official source before it ships. For example, the income-tax calculator follows Indonesia's PPh 21 progressive brackets exactly (5% / 15% / 25% / 30% / 35% on annual taxable income), including the standard deductions. If a tax rule changes, the formula changes — the page is just a view over it.&lt;/p&gt;

&lt;p&gt;Lesson: when your app outputs a number someone will act on, write the formula once, test it against known worked examples, and treat formula changes like database migrations.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Floating point will embarrass you&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;code&gt;0.1 + 0.2 = 0.30000000000000004&lt;/code&gt; is a meme until it shows up in someone's loan installment.&lt;/p&gt;

&lt;p&gt;The rule I follow everywhere: &lt;strong&gt;do all money math in the smallest integer unit, and format only at the very end.&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Fragile: float division on money&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;monthly&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;annualTax&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;12&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// 250000.00000000003&lt;/span&gt;

&lt;span class="c1"&gt;// Robust: integer rupiah, format at display time&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;monthly&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;round&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;annualTax&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;12&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nx"&gt;Intl&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;NumberFormat&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;id-ID&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="na"&gt;style&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;currency&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="na"&gt;currency&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;IDR&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="na"&gt;maximumFractionDigits&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="p"&gt;}).&lt;/span&gt;&lt;span class="nf"&gt;format&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;monthly&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt; &lt;span class="c1"&gt;// "Rp 250.000"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;Intl.NumberFormat&lt;/code&gt; also handles locale-specific grouping for free — &lt;code&gt;id-ID&lt;/code&gt; gives you dots as thousand separators, which is what Indonesian users expect.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Programmatic SEO without a backend&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Two thousand pages sounds like a CMS problem, but each calculator is really the same template: one URL, one H1, one formula, a worked example, and FAQ schema. Generate the pages at build time, serve them as static HTML.&lt;/p&gt;

&lt;p&gt;Static pages give you three things for free: instant load times (the whole point of a quick calculator), trivially cheap hosting, and crawlability without any SSR plumbing. The site's PPh 21 calculator page, for instance, is just a static page wrapping one well-tested function.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;No signup means no excuses — and no auth code&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Skipping accounts was a deliberate tradeoff. No auth means no password resets, no session bugs, no user data to leak. The cost: you can't sync history across devices. &lt;code&gt;localStorage&lt;/code&gt; covers "recently used calculators" well enough that nobody misses accounts.&lt;/p&gt;

&lt;p&gt;If your product's core value doesn't require identity, consider not having identity. It's the cheapest security posture there is.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Edge cases are the product&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Real users type &lt;code&gt;10jt&lt;/code&gt;, paste numbers with commas, enter negatives, and leave fields empty. Every input goes through the same pipeline: strip formatting characters → parse → clamp to a sane range → show a helpful error instead of &lt;code&gt;NaN&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Boring? Completely. But the difference between a calculator people trust and one they bounce from is almost entirely in how it handles bad input.&lt;/p&gt;




&lt;p&gt;The end result of all this is live at &lt;a href="https://kalkulatorin.id" rel="noopener noreferrer"&gt;kalkulatorin.id&lt;/a&gt; — a free Indonesian toolkit of 2000+ calculators and unit converters. The &lt;a href="https://kalkulatorin.id/keuangan/kalkulator-pph21/" rel="noopener noreferrer"&gt;PPh 21 calculator&lt;/a&gt; there runs the exact formula pipeline described above. Everything is client-side; your numbers never leave your browser.&lt;/p&gt;

</description>
      <category>python</category>
      <category>html</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
