Skip to content

UK Tax & NI Calculatorโšก๏ธ Modern responsive web interface (Bootstrap 5) ๐Ÿ‡ฌ๐Ÿ‡ง England, Wales & Scotland support (regional tax bands) ๐Ÿ“† Calculate for multiple tax years (rates in DB, not hardcoded) ๐Ÿ’ผ Handles yearly or hourly income (auto conversion) ๐Ÿ‘“ Blind allowance support ๐Ÿ”— REST API for integrations ๐Ÿ—ƒ๏ธ Tax bands, NI rates, and thresholds edita

Notifications You must be signed in to change notification settings

loglux/tax_calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

40 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ’ท UK Tax & NI Calculator

A web application and REST API for calculating UK tax and National Insurance.

๐Ÿ”— Live demo: https://tax.log7.uk/calculator/


โœจ Features

  • โšก๏ธ Modern responsive web interface (Bootstrap 5)
  • ๐Ÿ‡ฌ๐Ÿ‡ง England, Wales & Scotland support (regional tax bands)
  • ๐Ÿ“† Calculate for multiple tax years (rates in DB, not hardcoded)
  • ๐Ÿ’ผ Handles yearly or hourly income (auto conversion)
  • ๐Ÿ‘“ Blind allowance support
  • ๐Ÿ”— REST API for integrations
  • ๐Ÿ—ƒ๏ธ Tax bands, NI rates, and thresholds editable via Django admin
  • ๐Ÿš€ Production-ready deployment

๐Ÿš€ Installation

  1. Clone the repository:

    git clone https://github.com/loglux/tax_calculator.git
    cd tax_calculator
  2. Create and activate virtual environment:

    python -m venv .venv
    # Windows:
    .venv\Scripts\activate
    # Linux/Mac:
    source .venv/bin/activate
  3. Install dependencies:

    pip install -r requirements.txt
  4. Run migrations:

    python manage.py migrate
  5. Create a superuser (optional, for admin):

    python manage.py createsuperuser

๐Ÿƒ Running

python manage.py runserver

Open http://127.0.0.1:8000/ in your browser.


๐Ÿง‘โ€๐Ÿ’ป Usage

  • Web:
    Use the web form to enter your income, region, year, and other options.

  • API:
    POST to /calculate_tax/ with JSON, e.g.:

    {
      "income": 45000,
      "income_type": "yearly",
      "tax_year": 2024,
      "is_blind": false,
      "no_ni": false,
      "is_scotland": false,
      "workweek_hours": 40
    }

    Response: Full breakdown of tax, NI, net income, personal allowance, etc.


๐Ÿ›  Technologies

  • Django 5
  • Django REST Framework
  • Bootstrap 5
  • Gunicorn (for production)
  • Whitenoise (static files)

โš ๏ธ Disclaimer:
This calculator provides approximate calculations for UK tax and National Insurance, based on publicly available tax bands and thresholds.
It does not use HMRCโ€™s official API or methodology, and results may differ from official HMRC calculations.
This project is for educational and demonstration purposes only, and is not intended as a professional or legally reliable tax tool.


๐Ÿ“„ License

MIT


๐Ÿ™Œ Credits

Developed by Vladislav Sorokin
https://tax.log7.uk/calculator/

About

UK Tax & NI Calculatorโšก๏ธ Modern responsive web interface (Bootstrap 5) ๐Ÿ‡ฌ๐Ÿ‡ง England, Wales & Scotland support (regional tax bands) ๐Ÿ“† Calculate for multiple tax years (rates in DB, not hardcoded) ๐Ÿ’ผ Handles yearly or hourly income (auto conversion) ๐Ÿ‘“ Blind allowance support ๐Ÿ”— REST API for integrations ๐Ÿ—ƒ๏ธ Tax bands, NI rates, and thresholds edita

Topics

Resources

Stars

Watchers

Forks