depreciation_interest() and interpret its
outputs.Let:
Annual depreciation + interest:
\(k = \frac{V - \frac{R}{(1 + i)^N}}{a_{n,i}}\).
Annuity factor:
\(a_{n,i} = \frac{1}{i}*\bigg(1-\frac{1}{(1 + i)^{n}}\bigg)\).
Default (returns a data frame)
depreciation_interest(
v_replace_val = 50000, # replacement value
r_salvage_val = 5000 # salvage value at end of period
)
#> Annuity factor Yearly depreciation and interest costs
#> 1 8.752064 5266.644Only the annuity factor
depreciation_interest(
v_replace_val = 50000,
r_salvage_val = 5000,
output = "annuity_factor"
)
#> [1] 8.752064Only the annual cost (k)
When \(i\) = 0, the function uses the mathematical limit:
v_replace_val must be a single positive number;
r_salvage_val a non‑negative number.n_amortisation_period must be > 0;
i_interest_rt must be ≥ 0.Example (triggers an error):