The EMI Library is a Python library that provides a convenient way to calculate the Equated Monthly Installment (EMI) for loans. The library implements the EMI formula, which takes into account the principal loan amount, interest rate, and tenure in months.
Project description
EMI Calculator
The EMI Calculator is a Python library that provides a convenient way to calculate the Equated Monthly Installment (EMI) for a loan. It helps borrowers determine the fixed monthly payment, considering the principal loan amount, interest rate, and tenure in months.
Installation
You can install the EMI Calculator library using pip:
pip install emi_calculator
Usage
from emi import emi_calculator
OR
import emi
# Note* emi_calculator takes 3 arguments:
# 1. loan amount
# 2. interest rate
# 3. tenure_month
# the emi will result in float format
# you can use round function to round up what u want
# Input loan details
loan_amount = float(input('Enter loan amount: '))
interest_rate = float(input('Enter interest rate: '))
tenure_months = int(input('Enter tenure in months: '))
# Calculate EMI
calculate_emi = emi_calculator(loan_amount, interest_rate, tenure_months)
print(f"The Equated Monthly Installment (EMI) is: {calculate_emi:.2f}")
Example Let's calculate the EMI for a loan of $10,000 with an annual interest rate of 5% and a tenure of 36 months:
from emi import emi_calculator
loan_amount = 10000
interest_rate = 5
tenure_months = 36
emi = emi_calculator(loan_amount, interest_rate, tenure_months)
print(f"The Equated Monthly Installment (EMI) is: {emi:.2f}")
Output:
The Equated Monthly Installment (EMI) is: 304.17
Contributing Contributions are welcome! If you have any suggestions, improvements, or bug fixes, please create an issue or submit a pull request.
License This project is licensed under the MIT License. See the LICENSE file for details.
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
Built Distribution
File details
Details for the file emi_calculator-1.1.tar.gz
.
File metadata
- Download URL: emi_calculator-1.1.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc35b05383e62ede6767f3ac6f280d807fc052a4ea29968fdeb2479fef152b2b |
|
MD5 | f25208d335575ccfbe929ed45630c438 |
|
BLAKE2b-256 | 81a2238682f963a4188aef42741b47f4ffcf45f258a63a0fe9c87b091cbf87e2 |
File details
Details for the file emi_calculator-1.1-py3-none-any.whl
.
File metadata
- Download URL: emi_calculator-1.1-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 16e3b13128a38218b335eff92d8b84f645614c5d12a5540c15b742d139133df6 |
|
MD5 | 42a492e7976c59f58694f467d48afd03 |
|
BLAKE2b-256 | 595df5f642178ca32381f1e6f9df8033278767b280bd1661c0ba20e7c66c4e3d |