How is interest calculated?

Interest is calculated only on the remaining loan amount.