Coder Social home page Coder Social logo

swisstaxcalculator's Introduction

๐Ÿ‡จ๐Ÿ‡ญ Swiss Tax Calculator

The goal of this repository is to implement all the logic used to calculate the swiss taxes and serve it in a super fast service to do any kind of calculations in any kind of environment.


๐Ÿ‘‹ Get started

  • Clone the repository
  • yarn install (installs all the depencencies)
  • yarn dev (runs the dev server)

๐Ÿ‘‰ Functionality


Supported tax types

  • Income & wealth (fortune)
  • (Pension) capital withdrawal

Supported income types

  • Taxable income
  • Net income
  • Gross income

The speciality about the gross- and net-income types is the deductions that are made automatically based on the tax input and the possible deductions.


โ„น๏ธ Data source

Tarifs, Factors and Deductions

https://swisstaxcalculator.estv.admin.ch/#/taxdata

(Pension) capital widhdrawal defintions

Some information is from https://finpension.ch/de/vergleich-kapitalbezugssteuer/ and the updated values are from the individual canton tax laws directly.


๐Ÿ”ฅ Static deployment support

To run the service, there is no database required. All the data is either in the code files or imported from the raw data during dev / build time using the following command.

yarn importdata <year>

Raw data: ./data/raw/...
Parsed data: ./data/parsed/...

To import more tax years, just copy the raw files into the corresponding folder and run the importdata script.


๐Ÿš€ Blazing fast execution

The data is parsed into small chunks, mostly per canton to guarante a fast loading time and minimal memory consumption. Once loaded, the data is held in memory until the service is stopped.

In an always on environment, the data will be in memory until redeployed. This ensures maximum execution speed.

For cloud functions, the data has to be reloaded once the function was removed and reloaded into memory.


๐Ÿค Contribution & Usage

For issues and questions, please create an issue.

Please contact me ([email protected]) if you want to contribute or use this repository in your own environment or application. Thank you.

swisstaxcalculator's People

Contributors

devbrains-com avatar

Stargazers

 avatar

Watchers

 avatar  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.