Skip to contents

All payments minus the amount borrowed. From the Managing debt chapter.

Usage

total_interest(monthly_payment, n_months, principal)

Arguments

monthly_payment

Monthly payment.

n_months

Number of payments.

principal

Amount borrowed.

Value

A numeric vector of total interest.

Examples

# 6-year car loan vs. 4-year, $20,000 principal at 7%
total_interest(monthly_payment = 340.98, n_months = 72, principal = 20000)
#> [1] 4550.56
total_interest(monthly_payment = 478.92, n_months = 48, principal = 20000)
#> [1] 2988.16