GitHub

SIP Calculator

Project your wealth. Compare SIP vs Lumpsum. Track your financial goals.

License: MIT HTML5 Vanilla JS PRs Welcome


Overview

SIP & Investment Calculator is a single-file HTML web app for projecting long-term wealth through Systematic Investment Plans (SIPs). Compare SIP vs lumpsum investing, adjust for inflation, and track progress toward custom financial goals.

No frameworks, no CDN dependencies, no signups — everything runs in your browser.

Features

Feature Description
SIP Calculator Monthly amount, expected return %, time period → projected corpus
Lumpsum Comparison Visual bar chart comparing SIP vs one-time investment outcomes
Inflation Adjustment See your future corpus in today's money with configurable inflation rate
Goal Tracking Built-in goals: Rs 1Cr, 5Cr, 10Cr + custom goals with progress bars
Year-by-Year Table Detailed annual projection with invested, corpus, gain, inflation-adjusted values
Presets Quick scenarios: 10K/12%/10yr, 25K/12%/20yr, 50K/15%/25yr
Auto-calculate Results update instantly as you change inputs
Zero Dependencies Single index.html — no npm, no CDN, no build step

Quick Start

# Clone the repo
git clone https://github.com/soumendrak/sip-calculator.git
cd sip-calculator
# Open in browser
open index.html
# Or serve with any static server:
python3 -m http.server 8080

Screenshot

SIP Calculator Screenshot

Math

SIP Future Value:

FV = P x ((1 + r)^n - 1) / r x (1 + r)

Where P = monthly investment, r = monthly rate, n = total months

Inflation Adjustment:

Real Value = FV / (1 + i)^years

Project Structure

sip-calculator/
  index.html    — The entire application
  LICENSE       — MIT License
  README.md     — This file
  logo.svg      — Project logo

Architecture

  • Vanilla JS — DOM updates via input event listeners for real-time calculation
  • localStorage — Custom goals persisted client-side
  • SVG Goals — Progress bars rendered with pure CSS
  • CSS Custom Properties — Dark theme via :root variables

License

MIT — see LICENSE

Read the original on github.com ↗