How abhilash-66/emi-calculator works
Project type and purpose
• This is a single‐page static web application (EMI Calculator) built purely with HTML, CSS, and JavaScript.
• Purpose: Provide an interactive UI that takes user inputs (loan amount, interest rate, tenure) and instantly computes the Equated Monthly Installment.
File structure
• Top‐level files only:
• index.html – the UI shell
• styles.css – presentation layer
• script.js – business logic/EMI calculation
• README.md, LICENSE – documentation and license
• No backend services, no database, no external libraries or build scripts.
README for additional insights
• Confirms it’s a responsive, fast, and simple front‐end tool.
• No mention of server‐side or third‐party integrations.
Main components and their relationships
a. Components:
• User (browser) – initiates input and views output
• Presentation Layer (HTML + CSS) – renders form and results
• Business Logic Layer (JavaScript) – handles input validation and EMI formula
• Runtime Environment (Browser JS engine) – executes script
b. Interactions:
1. User enters loan parameters via HTML form.
2. Browser loads styles.css to style the form.
3. On form submission, script.js captures inputs, runs EMI calculation, and updates the DOM with results.
4. UI updates are immediately reflected in the browser without page reload.
c. Architectural patterns/design principles:
• Separation of concerns: HTML (structure), CSS (styles), JS (logic)
• Event-driven flow: UI events trigger business logic
• No persistent storage or external dependencies
d. Key technologies:
• HTML5 forms & semantic elements
• CSS3 media queries (responsive design)
• Vanilla JavaScript for calculation and DOM manipulation