# Both values as a data frame (defaults: n=10, i=2.5%)
depreciation_interest(v_replace_val = 50000, r_salvage_val = 5000)
# Only the annuity factor
depreciation_interest(50000, 5000, output = "annuity_factor")
# Only the annual charge (k)
depreciation_interest(50000, 5000, output = "annual_cost")
# Zero interest (uses the i -> 0 limit): a = n, k = (V - R)/n
depreciation_interest(50000, 5000, n_amortisation_period = 8,
i_interest_rt = 0,
output = "dataframe")
Run the code above in your browser using DataLab