Skip to contents

Compares a loan's interest rate to an expected investment return. From the Managing debt chapter.

Usage

payoff_vs_invest(loan_rate, expected_return)

Arguments

loan_rate

Loan interest rate, as a decimal (a single number).

expected_return

Expected yearly return, as a decimal (a single number).

Value

A single string: "Pay off the debt", "Invest the difference", or "Roughly a wash; do both".

Examples

# 5% student loan vs. expected 7% return
payoff_vs_invest(loan_rate = 0.05, expected_return = 0.07)
#> [1] "Invest the difference"