Skip to content

alfredang/novataxsg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NovaTax SG

HTML5 CSS3 JavaScript License: MIT GitHub Pages

A modern, transparent Singapore tax calculator for personal and corporate income tax estimation.

Live Demo · Report Bug · Request Feature


Screenshot

Landing Page

Personal Tax & Corporate Tax Calculators

Personal Tax Calculator

Corporate Tax Calculator


About

NovaTax SG is a client-side Singapore tax estimation tool that provides transparent, step-by-step breakdowns based on official IRAS tax rates and rules. Designed for learners, business users, and working professionals.

Key Features

Feature Description
Personal Income Tax Progressive tax brackets (0%–24%), resident & non-resident modes, 10+ relief categories
Corporate Income Tax Flat 17% rate with Partial & Start-Up exemptions, CIT rebates by YA
Real-Time Calculation Results update instantly as you type — no submit buttons
Transparent Breakdown Bracket-by-bracket and step-by-step tax logic with visual bar charts
Stats Dashboard At-a-glance stat cards for key tax figures
Dark / Light Theme Polished dual-theme with system preference detection and localStorage persistence
Responsive Design Dashboard-style layout that adapts cleanly to desktop, tablet, and mobile
Data Persistence Form inputs saved to localStorage across sessions
Print-Friendly Clean print view for exporting tax summaries
IRAS-Aligned Based on official Singapore tax rates, exemption schemes, and rebate rules

Tech Stack

Layer Technology
Markup HTML5 (semantic, accessible)
Styling CSS3 (custom properties, responsive grid, dark/light theming, Inter font)
Logic Vanilla JavaScript (ES6+, no frameworks)
Hosting GitHub Pages (static, zero build step)

Architecture

┌─────────────────────────────────────────────────┐
│                   Browser                        │
├──────────┬──────────┬──────────┬────────────────┤
│  index   │ personal │corporate │    about       │
│  .html   │ -tax.html│ -tax.html│    .html       │
├──────────┴──────────┴──────────┴────────────────┤
│                 css/styles.css                    │
│        (CSS custom properties, dashboard UI)     │
├─────────────────────────────────────────────────┤
│  js/theme.js  │  js/common.js                    │
│  (dark/light) │  (utils, nav, format, validate)  │
├───────────────┼─────────────────────────────────┤
│ js/personal-  │ js/corporate-                    │
│ tax.js        │ tax.js                           │
│ (progressive  │ (flat rate,                      │
│  brackets,    │  exemptions,                     │
│  reliefs)     │  rebates)                        │
├───────────────┴─────────────────────────────────┤
│           js/data/tax-rates.js                   │
│  (centralized IRAS rates, brackets, rebates)     │
└─────────────────────────────────────────────────┘

Project Structure

novataxsg/
├── index.html              # Landing page (hero, calculator cards, features)
├── personal-tax.html       # Personal income tax calculator
├── corporate-tax.html      # Corporate income tax calculator
├── about.html              # Tax rules, FAQ, assumptions
├── css/
│   └── styles.css          # Dashboard-style stylesheet (light + dark themes)
├── js/
│   ├── data/
│   │   └── tax-rates.js    # Centralized IRAS tax data
│   ├── common.js           # Shared utilities (formatting, validation, nav)
│   ├── theme.js            # Dark/light toggle with persistence
│   ├── personal-tax.js     # Personal tax calculator logic
│   └── corporate-tax.js    # Corporate tax calculator logic
├── assets/
│   ├── screenshot.png
│   ├── screenshot-personal-tax.png
│   └── screenshot-corporate-tax.png
└── .gitignore

Getting Started

Prerequisites

  • Any modern web browser (Chrome, Firefox, Safari, Edge)
  • No build tools, frameworks, or dependencies required

Run Locally

# Clone the repository
git clone https://github.com/alfredang/novataxsg.git
cd novataxsg

# Open directly in browser
open index.html

# Or serve with any static server
python3 -m http.server 8080
# Then visit http://localhost:8080

Deployment

This project is deployed on GitHub Pages with zero configuration:


Tax Calculation Reference

Personal Income Tax (Resident)

  • Progressive rates from 0% to 24% (YA 2024 onwards)
  • Supports 10+ relief categories (CPF, spouse, children, parent, NSman, donations, SRS, etc.)
  • Non-resident mode: 15% flat on employment (or progressive, whichever higher) + 22% on other income

Corporate Income Tax

  • Flat rate: 17%
  • Partial Tax Exemption: 75% on first $10k + 50% on next $190k
  • Start-Up Tax Exemption: 75% on first $100k + 50% on next $100k (first 3 YAs)
  • CIT Rebates: YA 2024 (50%, cap $40k) · YA 2025 (50%, cap $40k) · YA 2026 (40%, cap $30k)

Disclaimer: This tool provides estimates for educational purposes only. Always verify with official IRAS guidance before filing.


Contributing

Contributions are welcome!

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/my-feature
  3. Commit changes: git commit -m "Add my feature"
  4. Push to branch: git push origin feature/my-feature
  5. Open a Pull Request

Developed By

Tertiary Infotech Academy Pte Ltd


Acknowledgements

  • IRAS — Official Singapore tax rates and calculator references
  • Built with vanilla HTML, CSS, and JavaScript — no frameworks, no dependencies

If you find this useful, give it a star!

About

Modern Singapore tax calculator for personal and corporate income tax estimation. IRAS-aligned progressive brackets, exemptions, CIT rebates, dark/light theme.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors