Salary Calculator PRO is a self-hosted income and tax calculator built with FastAPI + Jinja2 + Chart.js.
It calculates your gross, tax, and net salary across multiple pay periods โ hourly, daily, weekly, monthly, quarterly, and yearly.
Fully offline. Private. Beautifully designed.
- ๐งฎ Multi-period salary breakdown โ converts between hour, day, week, month, quarter, and year
- ๐ฐ Tax deduction logic โ input your tax percentage and get instant net values
- ๐ Custom working days โ supports any working schedule (default 21 days โ 5/2)
- ๐ Modern UI โ glass-style dashboard with dark/light theme toggle
- ๐ Built-in documentation โ
/documentationroute with examples and field explanations - โ๏ธ Backend-powered โ all calculations handled by FastAPI for accuracy
- ๐งพ Dynamic table output โ shows Gross, Tax, and Net across all periods
- ๐ฅ Cross-platform start scripts โ ready for Windows, macOS, and Linux
- ๐พ Offline-first โ runs locally with no cloud dependency
C:.
โ .env
โ LICENSE.txt
โ requirements.txt
โ run.py
โ start_linux.sh
โ start_macos.sh
โ start_windows.bat
โ
โโโ app
โ calculators.py
โ main.py
โ models.py
โ tax_rates.json
โ __init__.py
โ
โโโ screens
โ 1server start.png
โ 2light front.png
โ 3dark front.png
โ 4calculated salary.png
โ 5another calc.png
โ 6docs page.png
โ 7docs page.png
โ
โโโ static
โ app.js
โ style.css
โ
โโโ templates
docs.html
index.html
| URL | Description |
|---|---|
/ |
Main salary calculator dashboard |
/calculate |
Backend API endpoint for calculations |
/documentation |
Built-in documentation and usage examples |
Install dependencies:
pip install -r requirements.txtCore dependencies:
- fastapi
- uvicorn
- jinja2
- httpx
start_windows.batchmod +x start_macos.sh
./start_macos.shchmod +x start_linux.sh
./start_linux.shThe app will automatically create a virtual environment,
install requirements, and open your browser at:
๐ http://127.0.0.1:8000
| Field | Description |
|---|---|
| Work Hours (per day) | How many hours you work each day |
| Working Days per Month | Number of working days per month (default 21 = 5/2 schedule) |
| Income Period | The pay period you are entering (Hour, Day, Week, Month, etc.) |
| Income Amount | Gross income for the selected period |
| Tax Rate (%) | Your tax percentage (deduction from gross pay) |
| Example | Input | Output |
|---|---|---|
| Hourly employee | 8h/day, $25/h, tax 15% | โ $3,570 net/month |
| Monthly salary | $5,000/month, tax 20% | $4,000 net/month, $48,000/year |
| Shift schedule (3/3) | 15 working days/month, $120/day, tax 20% | โ $17,280 net/year |
| Screenshot | Description |
|---|---|
1server start.png |
Server start console |
2light front.png |
Main calculator in light mode |
3dark front.png |
Calculator in dark mode |
4calculated salary.png |
Example of calculation results |
5another calc.png |
Another salary comparison |
6docs page.png |
Documentation page |
7docs page.png |
Field guide and examples |
| File | OS | Description |
|---|---|---|
start_windows.bat |
Windows | Creates venv, installs deps, starts server, opens browser |
start_macos.sh |
macOS | Same as above (zsh) |
start_linux.sh |
Linux | Same as above (bash) |
Access in-app documentation at:
๐ http://127.0.0.1:8000/documentation
This page explains all fields, formulas, and real-world examples for hourly, monthly, and shift-based work.
Email: talabov.ali72@gmail.com
Telegram: @talabovali
๐ก Salary Calculator PRO โ privacy-first, accurate, and effortlessly modern.