Depreciation & interest for medical equipment"

knitr::opts_chunk$set(
  collapse = TRUE, comment = "#>", fig.width = 7, fig.height = 4, dpi = 120
)
library(tatooheene)

What this vignette covers

Background & formulas

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)$.

Quick starts

Default (returns a data frame)

depreciation_interest(
  v_replace_val = 50000, # replacement value 
  r_salvage_val = 5000   # salvage value at end of period 
)

Only the annuity factor

depreciation_interest(
  v_replace_val = 50000,
  r_salvage_val = 5000,
  output = "annuity_factor"
)

Only the annual cost (k)

depreciation_interest(
  v_replace_val = 50000,
  r_salvage_val = 5000,
  output = "annual_cost"
)

Zero‑interest edge case

When $i$ = 0, the function uses the mathematical limit:

depreciation_interest(
  v_replace_val = 50000,
  r_salvage_val = 5000,
  n_amortisation_period = 8,
  i_interest_rt = 0,
  output = "dataframe"
)

Input validation & common messages

Example (triggers an error):

depreciation_interest(
  v_replace_val = 50000,
  r_salvage_val = -1
)


Try the tatooheene package in your browser

Any scripts or data that you put into this service are public.

tatooheene documentation built on Dec. 15, 2025, 5:06 p.m.