Skip to main content

A small python library for calculating insurance premiums with my logic.

Project description

Insurance Calculator

Insurance calculator is a Python package for insurance premium calculations. It includes functions to calculate life, motor, and health insurance premiums.

Installation

Install the library using pip:

pip install insurance-calculator-omkhulbe

Usage

Just create the object. For ex.

calc = Calculator()
print(calc.calculate_life_premium(34, "female", 0.02, 150000, 20))
print(calc.calculate_health_premium(21, "female", 0.02, 25000, 1))
print(calc.calculate_motor_premium(4, 20000, 120, 2))

For Life Insurance Parameter are as follows:

Age, Gender, Base Rate(0.02 = 2%), Sum Assured, Tenure

It provides the monthly premium amount.

For Health Insurance Parameter are as follows:

Age, Gender, Base Rate(0.02 = 2%), Sum Assured, Tenure

It provides the overall premium as per the tenure.

For Motor Insurance Parameter are as follows:

Vehicle Age, Initial IDV, Base Premium, Tenure

It provides three outputs Current IDV, Yearly Premium, Total Premium.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

insurancecalculatorpackage-1.0.0.tar.gz (2.3 kB view details)

Uploaded Source

File details

Details for the file insurancecalculatorpackage-1.0.0.tar.gz.

File metadata

File hashes

Hashes for insurancecalculatorpackage-1.0.0.tar.gz
Algorithm Hash digest
SHA256 0c344f811ed3edccab7d7515dffff42b5eb7869e1d98a9dc7fb0aa64c54ba588
MD5 c831acfe99b552f633a8f7f12b3b3954
BLAKE2b-256 555d04654af5c7a6525eff888b1cd1bec22936c2679f28c3fbc5187b8d66d03b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page