ethiopian-tax-calculator
v1.0.1
Published
A fast and efficient tax calculator for Ethiopian tax regulations, including personal, corporate, and other tax types.
Downloads
72
Maintainers
Readme
Ethiopian Tax Calculator
A fast and efficient tax calculator for Ethiopian tax regulations. This package includes functions to calculate various types of taxes, such as personal income tax, corporate tax, VAT, capital gains tax, excise tax, and turnover tax.
Installation
To install the package, use npm:
npm install ethiopian-tax-calculator
Usage
Importing the Package
You can import the functions from the package into your project:
import { calculatePersonalIncomeTax, calculateCorporateTax, calculateVAT, calculateCapitalGainsTax, calculateExciseTax, calculateTurnoverTax } from 'ethiopian-tax-calculator';
Personal Income Tax
To calculate personal income tax, use the calculatePersonalIncomeTax
function. This function takes the taxable income as input and returns the tax amount.
const income = 15000;
const tax = calculatePersonalIncomeTax(income);
console.log(`Personal Income Tax: ${tax}`);
Corporate Tax
To calculate corporate tax, use the calculateCorporateTax
function. Pass the taxable income to get the tax amount.
const corporateIncome = 500000;
const corporateTax = calculateCorporateTax(corporateIncome);
console.log(`Corporate Tax: ${corporateTax}`);
VAT
To calculate VAT, use the calculateVAT
function. Provide the amount to calculate the VAT.
const amount = 1000;
const vat = calculateVAT(amount);
console.log(`VAT: ${vat}`);
Capital Gains Tax
To calculate capital gains tax, use the calculateCapitalGainsTax
function. Pass the gain amount to get the tax.
const capitalGain = 20000;
const capitalGainsTax = calculateCapitalGainsTax(capitalGain);
console.log(`Capital Gains Tax: ${capitalGainsTax}`);
Excise Tax
To calculate excise tax, use the calculateExciseTax
function. Provide the taxable amount to get the excise tax.
const taxableAmount = 3000;
const exciseTax = calculateExciseTax(taxableAmount);
console.log(`Excise Tax: ${exciseTax}`);
Turnover Tax
To calculate turnover tax, use the calculateTurnoverTax
function. Provide the turnover amount to get the tax.
const turnover = 40000;
const turnoverTax = calculateTurnoverTax(turnover);
console.log(`Turnover Tax: ${turnoverTax}`);
API Reference
calculatePersonalIncomeTax(income: number): number
Calculates the personal income tax based on the provided income.
calculateCorporateTax(income: number): number
Calculates the corporate tax based on the provided income.
calculateVAT(amount: number): number
Calculates the VAT based on the provided amount.
calculateCapitalGainsTax(gain: number): number
Calculates the capital gains tax based on the provided gain.
calculateExciseTax(amount: number): number
Calculates the excise tax based on the provided amount.
calculateTurnoverTax(turnover: number): number
Calculates the turnover tax based on the provided turnover.
Contributing
We welcome contributions to improve this package! To contribute:
- Fork the repository: Fork the repository on GitHub.
- Clone your fork: Clone your forked repository to your local machine.
- Create a new branch: Create a new branch for your changes.
- Make your changes: Implement your improvements or fixes.
- Test your changes: Ensure that your changes are tested.
- Submit a pull request: Push your changes to your fork and submit a pull request to the main repository.
Feel free to reach out with any questions or suggestions!
Repository URL: Repository Page
License
This package is licensed under the MIT License. See the LICENSE file for details.
Contact
For any questions or issues, please contact the author:
- Author: Kaleab Endrias
- Email: [email protected]