- All Known Implementing Classes:
PayrollCalculator
public interface TaxAndDeductions
Defines the interface calculating taxes and deductions.
Provides methods to calculate SSS, PhilHealth, PagIbig contributions,
partial deduction, and total deduction.
-
Method Summary
Modifier and TypeMethodDescriptiondoubleCalculate the PagIbig contribution.doubleCalculate the partial deduction.doubleCalculate the PhilHealth contribution.doubleCalculate the Social Security contribution.doubleCalculate the total deduction.
-
Method Details
-
calculateSSS
double calculateSSS()Calculate the Social Security contribution.- Returns:
- the Social Security contribution amount
-
calculatePhilHealth
double calculatePhilHealth()Calculate the PhilHealth contribution.- Returns:
- the calculated PhilHealth contribution
-
calculatePagIbig
double calculatePagIbig()Calculate the PagIbig contribution.- Returns:
- the calculated PagIbig contribution
-
calculatePartialDeduction
double calculatePartialDeduction()Calculate the partial deduction.- Returns:
- the total partial deduction
-
calculateTotalDeduction
double calculateTotalDeduction()Calculate the total deduction.- Returns:
- the total deduction amount
-