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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file insurancecalculatorpackage-1.0.0.tar.gz.
File metadata
- Download URL: insurancecalculatorpackage-1.0.0.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0c344f811ed3edccab7d7515dffff42b5eb7869e1d98a9dc7fb0aa64c54ba588
|
|
| MD5 |
c831acfe99b552f633a8f7f12b3b3954
|
|
| BLAKE2b-256 |
555d04654af5c7a6525eff888b1cd1bec22936c2679f28c3fbc5187b8d66d03b
|