### Equated Monthly Installment (EMI) Calculator

### Explanation

An equated monthly installment (EMI) is a fixed payment amount made by a borrower to a lender at a specified date each calendar month. Equated monthly installments are applied to both interest and principal each month so that the loan is paid off in full over a specified number of years. In the most common types of loans—such as real estate mortgages, auto loans, and student loans—the borrower makes fixed periodic payments to the lender over several years to retire the loan.

**Inputs:**The user inputs the loan amount, annual interest rate, and tenure.

$EMI = \frac{P \cdot r \cdot (1 + r)^n}{(1 + r)^n - 1}$**Calculation:**The EMI is calculated using the formula:- $P = Principal loan amount$
- $r = Monthly interest rate (annual interest rate / 12 / 100)$
- $n = Tenure in months$

**Validation:**The code checks if inputs are valid numbers and positive values.**Result Display:**The calculated EMI is displayed in the result div.