A calculator to calculate your hourly wage based on your salary, holidays, work hours, etc. This application uses the official data from Canton de Vaud 2024 for holidays and vacations.
- Calculate hourly wage for different roles: Teacher, Employee, and Freelance.
- Takes into account holidays and vacations.
- Allows customization of weekly work hours, monthly salary, number of monthly salaries, and additional hours for teachers.
- Simple and intuitive graphical user interface (GUI) built with Tkinter.
- For the teacher role, checks if a holiday occurs during vacations to avoid counting double non-working days.
- Python 3.x
- Tkinter : for Fedora (sudo dnf install python3-tkinter)
-
Clone the repository:
git clone https://github.com/AlexIn-Tech/Swiss-Hourly-Wage-Calculator.git cd Swiss-Hourly-Wage-Calculator
-
Ensure you have the required JSON file (
holidays_vacations_2024.json
) in the same directory asmainGUI.py
.
-
Run the application:
python mainGUI.py
-
The GUI will open, allowing you to input the following details:
- Role: Select your role (Teacher, Employee, Freelance).
- Net Monthly Salary (CHF): Enter your net monthly salary.
- Number of Monthly Salaries: Enter the number of monthly salaries you receive per year.
- Weekly Hours: Enter the number of hours you work per week.
- Additional Hours: (Visible only for Teachers) Enter additional hours for preparation and correction.
- Vacation Weeks: (Visible for Employees and Freelancers) Enter the number of vacation weeks.
- Include Official Holidays: (Visible for Freelancers) Check if you want to include official holidays in the calculation.
-
Click on "Calculate Hourly Rate" to get your hourly rate.
-
Click on "Reset Values" to reset all fields to their default values.
The application uses the official data from Canton de Vaud 2024 for holidays and vacations. If you would like to change this information, edit the holidays_vacations_2024.json
file.
This project is licensed under the MIT License. See the LICENSE file for details.