How is interest calculated on a consumer loan?

Divide the Annual Percentage Rate by 365 days (# of days in a year) to get the daily rate. Multiply the principal balance by the daily rate and then multiply that by the number of days from your last payment until this payment.