Skip to contents

From the Budgeting chapter.

Usage

months_to_break_even(upfront_cost, monthly_savings)

Arguments

upfront_cost

One time cost.

monthly_savings

Amount saved each month because of the purchase. Must be greater than 0.

Value

A numeric vector of months (not rounded).

Examples

# $600 upfront to save $50 a month
months_to_break_even(upfront_cost = 600, monthly_savings = 50)
#> [1] 12