@dlivr.io/salary-calculator-egypt
v2.0.4
Published
Javascript SDK for calculating Net/Gross salary in Egypt.
Downloads
28
Readme
Welcome to DlivrIO
Installation
yarn add @dlivr.io/salary-calculator-egypt
# or
npm install --save @dlivr.io/salary-calculator-egypt
Usage
Calculate net salary using gross salary
import { calculateNetSalary } from "@dlivr.io/salary-calculator-egypt";
const [
netSalary,
{
insuranceWage,
socialInsuranceWorkerShare,
salaryTax,
martyrsFamiliesFunds,
netSalary,
grossSalary,
socialInsuranceEmployerShare,
totalDeduction,
},
] = calculateNetSalary({ grossSalary: 12472, bonus: 0, deduction: 0, lawYear: LawYear.TWENTY_TWO });
Calculate gross salary using net salary
import { calculateGrossSalary } from "@dlivr.io/salary-calculator-egypt";
const [
grossSalary,
{
insuranceWage,
socialInsuranceWorkerShare,
salaryTax,
martyrsFamiliesFunds,
netSalary,
grossSalary,
socialInsuranceEmployerShare,
totalDeduction,
},
] = calculateGrossSalary({ netSalary: 8000, bonus: 0, deduction: 0, lawYear: LawYear.TWENTY_TWO });
Contribution
All contributions are welcome. To contribute please open a PR here.
Please, do not forget to test your code and run npm test
before opening a PR.