Skip to content

Calculate health insurance contribution for self-employed workers.

License

Notifications You must be signed in to change notification settings

hochzehn/health-insurance

Repository files navigation

health-insurance

Calculate health insurance contribution for self-employed workers in Germany.

Installation

Bower

bower install --save health-insurance

Usage

Include bower_components/health-insurance/dist/health-insurance.min.js.

var record = {
    income: 1234.56,
    age: 25,
    hasChildren: false,
    withSickPay: true,
    insuranceCompany: 'tk'
};

var insuranceContributions = healthInsurance(record);
console.log(insuranceContributions);

/* Prints:
{
    totalContribution: 397.17,
    nursingCareInsuranceContribution: 62.48,
    healthInsuranceContribution: 334.69
}
*/

record is a container for these calculation options:

  • income: Monthly income relevant for health insurance tax calculation
  • age: age in years
  • hasChildren: boolean whether person has children (default false)
  • withSickPay: boolean whether insurance includes sick pay (default false)
  • insuranceCompany: string code of an insurance company (see below)

In the calculation result all values are monthly contribution amounts. totalContribution is sum of healthInsuranceContribution and nursingCareInsuranceContribution.

Insurance companies

Supported insurance companies are

Code Name Website Rates description
tk Techniker Krankenkasse here here

Run tests

bin/test.sh

Code coverage report can be found in coverage/PhantomJS 2.1.1 (Linux 0.0.0)/index.html (HTML) as well as coverage/clover.xml (Clover XML).

Publish

Register (once)

bin/dist/bower.sh register health-insurance https://github.com/hochzehn/health-insurance.git

Update dist files (for every release)

bin/dist/dist.sh

About

Calculate health insurance contribution for self-employed workers.

Resources

License

Stars

Watchers

Forks

Packages

No packages published