npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

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

148

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:

  1. Fork the repository: Fork the repository on GitHub.
  2. Clone your fork: Clone your forked repository to your local machine.
  3. Create a new branch: Create a new branch for your changes.
  4. Make your changes: Implement your improvements or fixes.
  5. Test your changes: Ensure that your changes are tested.
  6. 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: