File size: 1,604 Bytes
e88ec06
 
 
 
 
 
 
 
 
7f01229
e88ec06
285c75e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7f01229
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
---
title: Amortization Report
emoji: πŸ“Š
colorFrom: pink
colorTo: purple
sdk: gradio
app_file: app.py
pinned: false
license: mit
sdk_version: 5.29.1
---

# πŸ“Š Amortization Report

This interactive app helps you generate a full amortization schedule for any loan. Simply enter your loan amount, interest rate, and loan period, and you'll get:

- A detailed amortization table
- A breakdown of interest and principal paid per year
- A line chart showing remaining balance over time

Built with Python, Gradio, NumPy Financial, Pandas, and Matplotlib β€” and hosted on Hugging Face Spaces.

---

## πŸ”’ How It Works

**Input Parameters:**

- **Loan Amount (Principal)** – Total amount borrowed  
- **Annual Interest Rate (%)** – Input as a percentage (e.g., type `5` for 5%)  
- **Number of Periods (Years)** – Duration of the loan in years

**Output:**

- πŸ“‹ **Amortization Table** showing payment, interest, principal, and balance per year  
- πŸ“ˆ **Payment Breakdown Plot** comparing interest and principal over time  
- πŸ“‰ **Remaining Balance Chart** showing how your debt is paid off

---

## πŸ§ͺ Example

Try entering the following:

- Loan Amount (Principal): 100000
- Annual Interest Rate (%): 5.00
- Number of Periods (Years): 10


You’ll see how the loan amortizes β€” how much you pay in interest and principal each year, and how the balance decreases over time.

---

## πŸ“¦ Installation

Clone the repo and install the required packages:

```bash
git clone https://huggingface.co/spaces/ali-denewade/amortization-report
cd amortization-report
pip install -r requirements.txt