Calculate health insurance contribution for self-employed workers in Germany.
bower install --save health-insurance
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 calculationage
: age in yearshasChildren
:boolean
whether person has children (defaultfalse
)withSickPay
:boolean
whether insurance includes sick pay (defaultfalse
)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
.
Supported insurance companies are
Code | Name | Website | Rates description |
---|---|---|---|
tk |
Techniker Krankenkasse | here | here |
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).
bin/dist/bower.sh register health-insurance https://github.com/hochzehn/health-insurance.git
bin/dist/dist.sh