Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@dlivr.io/salary-calculator-egypt

dlivr-io86ISC2.1.0TypeScript support: included

Javascript SDK for calculating Net/Gross salary in Egypt.

salary, calculator, salary calculator, net salary calculator, net, gross, net calculator, gross calculator, net from gross, gross from net, Egypt

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.

Lisence

MIT