Welcome to the Greek Salary Calculator CLI! This Python tool helps you calculate your net monthly and annual salary in Greece for the tax year 2023. It takes into account:
- Employer and employee insurance contributions
- Income tax
- Tax credits based on the number of children
You can use it as a CLI tool or through a REST API.
- Employer Contributions: Automatically calculated based on the gross salary.
- Employee Insurance Contributions: Deducted before calculating the taxable income.
- Income Tax: Applied on a graduated basis according to Greek tax law.
- Tax Credits: Adjusted based on the number of children.
- Detailed Salary Breakdown: Outputs gross and net monthly and annual salaries.
-
Clone the repository:
git clone https://github.com/peterdsp/greek-salary-calculator-cli.git
-
Navigate to the project directory:
cd greek-salary-calculator-cli
-
Install the dependencies:
pip install -r requirements.txt
-
Run the application:
python ng_salary_calculator.py
-
Navigate to the project directory:
cd greek-salary-calculator-cli
-
Install the dependencies:
pip install -r requirements.txt
-
Run the Flask application:
python ng_salary_calculator_api.py
-
Send a POST request to the API:
- URL:
http://127.0.0.1:5000/calculate_net_salary
- Body:
{ "gross_monthly_salary": 2000, "num_children": 2 }
- URL:
curl -X POST http://127.0.0.1:5000/calculate_net_salary -H "Content-Type: application/json" -d '{"gross_monthly_salary": 2000, "num_children": 2}'
{
"gross_monthly_salary": 2000.0,
"gross_annual_salary": 28000.0,
"net_monthly_salary": 1457.29,
"net_annual_salary": 20401.08
}
-
Gross Monthly Salary: The starting salary provided by the user.
-
Annual Gross Salary: Calculated as
gross_monthly_salary * 14
since there are 14 monthly payments in the year. 3. Employee's Insurance Contribution: Calculated based on whether the gross salary exceeds the insurable earnings ceiling. 4. Annual Insurance Contribution: The monthly insurance contribution multiplied by 14. 5. Annual Taxable Income: The gross annual salary minus the annual insurance contribution. 6. Total Tax: Calculated based on the taxable income using the given tax brackets and rates. 7. Tax Credit: Based on the number of children and reduced by income above €12,000. 8. Final Tax: The total tax reduced by the tax credit. 9. Net Annual Income: The gross annual salary minus the insurance contributions and final tax. 10. Net Monthly Income: The net annual income divided by 14.
Contributions are welcome! Feel free to open an issue or submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.
Special thanks to the developers and contributors who have made this project possible.
For any questions, please contact us at info@peterdsp.dev.