MahekTrivedi/CtrlEMI
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
Ctrl+Loan EMI Calculator! ๐ฐโจ
A charming and intuitive Equated Monthly Installment (EMI) calculator built with Gradio. This app helps you quickly calculate your monthly loan payments, total interest, and total payable amount, offering a detailed amortization schedule and a visual breakdown chart. It even supports currency conversion for global users!
Table of Contents
- Features
- Live Demo
- How to Use
- Currency Conversion
- Installation (Local)
- Running Locally
- Project Structure
- Technical Details
- Contact
Features
- EMI Calculation: Calculates accurate monthly EMIs based on Principal, Interest Rate, and Tenure.
- Detailed Breakdown: Provides Total Interest Payable and Total Amount Payable.
- Amortization Schedule: Generates a comprehensive table showing month-by-month principal and interest payments.
- Visual Representation: Includes a beautiful chart visualizing the principal vs. interest paid over time.
- Multi-Currency Support: Convert results to various major global currencies, offering flexibility for international users.
- Interactive Explanations: An "How was this calculated?" accordion provides detailed insights into the EMI, Total Interest, and Currency Conversion formulas.
- Charming UI: Custom CSS provides a unique, user-friendly interface with a delightful "Ctrl+Loan" theme.
Live Demo
Experience the calculator live on Hugging Face Spaces:
๐ [https://huggingface.co/spaces/MahekTrivedi/CtrlEMI](https://huggingface.co/spaces/MahekTrivedi/CtrlEMI)
How to Use
- Loan Amount (Principal): Enter the total amount you wish to borrow.
- Input Currency: Select the currency in which your loan amount is denominated.
- Annual Interest Rate (%): Input the yearly interest rate for your loan.
- Loan Tenure (Years): Specify the repayment period in years.
- Display Results In: Choose the currency you want the EMI, total interest, and total payable amounts to be displayed in.
- Click "Calculate My EMI!": The app will instantly display your results, amortization table, and chart.
- Explore Explanations: Expand the "๐ค How was this calculated?" accordion to understand the underlying formulas and currency conversion logic.
Currency Conversion
The calculator uses a set of static exchange rates relative to the US Dollar. Please note that these rates are placeholders from July 5, 2025, and are not real-time. For critical financial decisions, always consult official and up-to-date exchange rate sources.
Installation (Local)
To run this application on your local machine, follow these steps:
- Clone the repository:
git clone [https://github.com/your-username/your-repo-name.git](https://github.com/your-username/your-repo-name.git)
cd your-repo-name(Replace `your-username/your-repo-name` with your actual GitHub repository URL)
- Create a virtual environment (recommended):
python -m venv venv
# On Windows:
.\venv\Scripts\activate
# On macOS/Linux:
source venv/bin/activate- Install dependencies:
pip install -r requirements.txt The requirements.txt file contains:
gradio
pandas
matplotlibRunning Locally
Once you have installed the dependencies, you can run the Gradio app:
python app.pyThe app will typically launch on http://127.0.0.1:7860 (or another local port if 7860 is in use). You will see a message in your terminal indicating the local URL.
Project Structure
. โโโ app.py # Main Gradio application code โโโ requirements.txt # Python dependencies โโโ README.md # This README file โโโ assets/ # (Optional) Directory for screenshots etc. โโโ screenshot.png
Technical Details
- Frontend/Backend Framework: Gradio
- Data Handling: Pandas for tabular data
- Plotting: Matplotlib for charts
- Styling: Custom CSS embedded within app.py for a personalized look.
- Font Integration: Google Fonts (Emilys Candy, Special Elite) are imported via CSS.
Contact
If you have any questions or feedback, feel free to reach out:
GitHub: MahekTrivedi44
Hugging Face: MahekTrivedi
Email: mahektrivedi2006@gmail.com
