@dlivr.io/salary-calculator-egypt
TypeScript icon, indicating that this package has built-in type declarations

2.0.4 • Public • Published

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.

Lisence

MIT

Package Sidebar

Install

npm i @dlivr.io/salary-calculator-egypt

Weekly Downloads

0

Version

2.0.4

License

ISC

Unpacked Size

99.6 kB

Total Files

115

Last publish

Collaborators

  • dlivr.io
  • abdotaker608
  • ebrahimahmed97090