A JavaFX application to calculate Employee Provident Fund (EPF) and Employee Trust Fund (ETF) contributions based on the provided salary. This application is designed to help employees and employers quickly determine their respective contributions and the net salary after deductions.
-
Salary Calculation: Input a salary and calculate the following:
- Employee EPF Contribution
- Employer EPF Contribution
- Employer ETF Contribution
- Total Employer Contribution
- Total EPF Contributions
- Total EPF + ETF Contributions
- Net Salary
-
Interactive UI: Utilizes JavaFX for a user-friendly graphical interface with real-time feedback and fade transitions for updated values.
-
Validation: Ensures the salary input is a valid number between 0 and 10,000,000.
-
Responsive Feedback: Provides success and error messages based on user input.
- Java 11 or higher
- JavaFX SDK
-
Clone the repository:
git clone https://github.com/hirunaofficial/EPF-ETF-Salary-Calculator
-
Navigate to the project directory:
cd EPF-ETF-Salary-Calculator
-
Open the project in your favorite IDE and ensure JavaFX is set up correctly.
- Build and run the
CalculatorApplication
class. - The application window will open, allowing you to enter a salary and calculate the contributions.
- Enter your salary in the input field.
- Click the "Calculate" button.
- View the detailed breakdown of contributions and net salary.
- CalculatorApplication: Main class to launch the JavaFX application.
- CalculatorController: Controller class handling the business logic for salary calculation and UI updates.
- calculator-view.fxml: FXML file defining the layout of the application.
This project is licensed under the GPL-3.0 License. See the LICENSE file for details.
GD Hiruna - hiruna.dev
Feel free to reach out if you have any questions or need further assistance!