shivrajkarewar commited on
Commit
0f04a5d
·
verified ·
1 Parent(s): 101d612

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +65 -0
README.md CHANGED
@@ -11,4 +11,69 @@ license: mit
11
  short_description: Home Loan EMI Calculator
12
  ---
13
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
11
  short_description: Home Loan EMI Calculator
12
  ---
13
 
14
+ # EMI Calculator
15
+
16
+ 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.
17
+
18
+ ## Features
19
+ - Takes user input for loan amount, duration, interest rate, and down payment.
20
+ - Uses the standard EMI formula for calculations.
21
+ - Provides accurate and rounded EMI results.
22
+
23
+ ## Formula Used
24
+ The EMI calculation follows this formula:
25
+
26
+ ```math
27
+ EMI = \frac{P \times r \times (1 + r)^n}{(1 + r)^n - 1}
28
+ ```
29
+
30
+ Where:
31
+ - **P** = Principal loan amount
32
+ - **r** = Monthly interest rate (annual rate divided by 12)
33
+ - **n** = Loan duration in months
34
+
35
+ ## How to Use
36
+ ### Installation
37
+ ```bash
38
+ pip install -r requirements.txt
39
+ ```
40
+
41
+ ### Running the script
42
+ ```bash
43
+ python emi_calculator.py
44
+ ```
45
+
46
+ ### Example Usage
47
+ ```
48
+ Enter the loan amount: 10000
49
+ Enter the loan duration in months: 12
50
+ Enter the monthly interest rate (as decimal, e.g., 0.1 for 10%): 0.1
51
+ Enter the down payment amount (if any, else 0): 0
52
+ Monthly EMI: 1467.63
53
+ ```
54
+
55
+ ## Requirements
56
+ - Python 3.x
57
+
58
+ ## Model Card Metadata
59
+ ```yaml
60
+ tags:
61
+ - finance
62
+ - machine-learning
63
+ - python
64
+ license: mit
65
+ ```
66
+
67
+ ## License
68
+ This project is licensed under the MIT License.
69
+
70
+ ## Contributions
71
+ Feel free to fork this repository, submit issues, or contribute enhancements.
72
+
73
+ ---
74
+
75
+ Made with ❤️ by [Your Name]
76
+
77
+
78
+
79
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference