This calculator uses the standard reducing-balance method. Interest is charged every month on the amount you still owe, so as each EMI reduces the balance, the interest part of the next EMI gets smaller and the principal part gets larger. The EMI itself stays the same for the whole tenure.
The monthly rate r is the yearly rate divided by 12 and by 100. With n monthly instalments, the EMI is the fixed payment that brings the balance to exactly zero after the last one. If the rate is 0%, there is no interest to compound, so the EMI is simply the loan amount divided by the number of months.
Total repayment is the unrounded EMI multiplied by the number of months, and total interest is that total minus the loan amount. Amounts are rounded to the paisa only when they are shown, so multiplying the displayed EMI by the months can differ from the displayed total by a few paise.