shivrajkarewar's picture
Update README.md
8e4d552 verified

A newer version of the Streamlit SDK is available: 1.43.2

Upgrade
metadata
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:

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

pip install -r requirements.txt

Running the script

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

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