The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.

Depreciation & interest for medical equipment

The tatooheene team

2025-12-15

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 
)
#>   Annuity factor Yearly depreciation and interest costs
#> 1       8.752064                               5266.644

Only the annuity factor

depreciation_interest(
  v_replace_val = 50000,
  r_salvage_val = 5000,
  output = "annuity_factor"
)
#> [1] 8.752064

Only the annual cost (k)

depreciation_interest(
  v_replace_val = 50000,
  r_salvage_val = 5000,
  output = "annual_cost"
)
#> [1] 5266.644

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"
)
#>   Annuity factor Yearly depreciation and interest costs
#> 1              8                                   5625

Input validation & common messages

Example (triggers an error):

depreciation_interest(
  v_replace_val = 50000,
  r_salvage_val = -1
)
#> Error: `r_salvage_val` must be a single non-negative number.

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.