Coder Social home page Coder Social logo

swe-income-tax's Introduction

Swedish income tax calculator

Calculates Swedish income tax.

##Install npm install swe-income-tax ##Usage

    > var sweTax = require('swe-income-tax')
    > sweTax.taxDetails(300000, 0.326, 2016, 1980)
    { 
      inkomst: 300000,
      grundavdrag: 17900,
      pensionsavgift: 21000,
      jobbskatteavdrag: 23180,
      kommunalskatt: 91965,
      statligskatt: 0,
      totalskatt: 68785 
    }

API

sweTax.taxDetails(yearlyIncome, taxRate, year, birthYear)

  • @param {number} yearlyIncome The taxable income
  • @param {number} taxRate Tax rate for the municipality
  • @param {number} year Year for when money was earned
  • @param {number} birthYear Year of birth of the tax payer
  • @return {object}

Returns an object with all deductions and taxes for the given income.

sweTax.yearlyTax(yearlyIncome, taxRate, year, birthYear)

  • @param {number} yearlyIncome The taxable income
  • @param {number} taxRate Tax rate for the municipality
  • @param {number} year Year for when money was earned
  • @param {number} birthYear Year of birth of the tax payer
  • @return {number}

Returns the total tax to be paid for the entire year.

sweTax.monthlyTax(monthlyIncome, taxRate, year, birthYear)

  • @param {number} yearlyIncome The taxable income
  • @param {number} taxRate Tax rate for the municipality
  • @param {number} year Year for when money was earned
  • @param {number} birthYear Year of birth of the tax payer
  • @return {number}

Returns tax to be paid per month for a monthly income.

swe-income-tax's People

Contributors

jonasgroth avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.