Formualizer Docs
ReferenceFunctionsFinancial Functions

DB

DB: Returns fixed-declining-balance depreciation for a specified period.

Summary

DB computes per-period depreciation using a declining-balance rate and an optional first-year month proration.

Remarks

  • Parameters: cost, salvage, life, period, and optional month (default 12).
  • month must be in 1..=12; life and period must be positive; invalid values return #NUM!.
  • life and period are truncated to integers for period checks and iteration.
  • The declining rate is rounded to three decimals; if cost <= 0 or salvage <= 0, this implementation uses a rate of 1.0.
  • Returned value is the period depreciation amount (generally positive expense, but sign follows provided inputs).

Examples

First full-year DB period
Grid
CellValue
No inputs on Sheet1.
Formula
=
Result
Not evaluated yet.
Expected
3690
Fractional period input is truncated
Grid
CellValue
No inputs on Sheet1.
Formula
=
Result
Not evaluated yet.
Expected
2328.39

FAQ

How is month used in DB?

month prorates the first-year depreciation; if omitted it defaults to 12.

Why can fractional period inputs behave like integers?

DB truncates life and period to integers for iteration and period bounds.

Runtime metadata

Category

Financial

Signature

DB(arg1: Number, arg2: Number, arg3: Number, arg4: Number, arg5…: Number)

Arity

min 4, max variadic

Arguments

arg1

Number · Scalar · coercion NumberLenientText

arg2

Number · Scalar · coercion NumberLenientText

arg3

Number · Scalar · coercion NumberLenientText

arg4

Number · Scalar · coercion NumberLenientText

arg5

Number · Scalar · coercion NumberLenientText

Caps

PURE

Source

On this page