File size: 1,710 Bytes
d0ab2ef 0f04a5d 8e4d552 0f04a5d d0ab2ef |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 |
---
title: Home Loan EMI Calculator
emoji: 🦀
colorFrom: red
colorTo: indigo
sdk: streamlit
sdk_version: 1.42.2
app_file: app.py
pinned: false
license: mit
short_description: Home Loan EMI Calculator
---
# EMI Calculator
This is a simple Python script that calculates the Equated Monthly Installment (EMI) for a loan based on user input. The script prompts the user to enter the loan amount, duration, interest rate, and optional down payment, then computes the EMI.
## Features
- Takes user input for loan amount, duration, interest rate, and down payment.
- Uses the standard EMI formula for calculations.
- Provides accurate and rounded EMI results.
## Formula Used
The EMI calculation follows this formula:
```math
EMI = \frac{P \times r \times (1 + r)^n}{(1 + r)^n - 1}
```
Where:
- **P** = Principal loan amount
- **r** = Monthly interest rate (annual rate divided by 12)
- **n** = Loan duration in months
## How to Use
### Installation
```bash
pip install -r requirements.txt
```
### Running the script
```bash
python emi_calculator.py
```
### Example Usage
```
Enter the loan amount: 10000
Enter the loan duration in months: 12
Enter the monthly interest rate (as decimal, e.g., 0.1 for 10%): 0.1
Enter the down payment amount (if any, else 0): 0
Monthly EMI: 1467.63
```
## Requirements
- Python 3.x
## Model Card Metadata
```yaml
tags:
- finance
- machine-learning
- python
license: mit
```
## License
This project is licensed under the MIT License.
## Contributions
Feel free to fork this repository, submit issues, or contribute enhancements.
---
Made with ❤️ by Shivraj
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|