# DDB Function

> Calculate asset depreciation for a period with DDB in TX Sheet Control: cost, salvage, life, period, the declining factor and the #NUM! error cases.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Function
- **Path:** TX Sheet Control > API Reference > Formula Functions > DDB Function
- **263 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/ddb/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/ddb/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/ddb/llms-full.txt

---

Calculate the depreciation of an asset for a period with the double-declining balance method or another declining factor. `cost` is the initial cost of the asset, `salvage` its value at the end of the depreciation, `life` the number of periods of its useful life and `period` the period to calculate, in the same unit as `life`. `factor_or_month` is the rate at which the balance declines, 2 (double-declining balance) when omitted. A period after the end of the life returns 0, and a period of zero or less or a negative cost returns `#NUM!`.

### Syntax

```text
DDB(cost, salvage, life, period, factor_or_month)
```

Category: Financial. Minimum arguments: 4. Maximum arguments: 5.

Available for supported offline calculation.

### Examples

```text
=DDB(1000,100,5,1)
```

The formula returns 400, the depreciation in the first year: 2/5, or 40%, of the cost of 1,000.

Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.

### See Also

- [Formulas](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/formulas/llms-full.txt)
- [Custom Functions and Formula Data](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/custom-functions/llms-full.txt)

---

## Nearby

- **Previous:** [DCOUNTA Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/dcounta/llms-full.txt)
- **Next:** [DEC2BIN Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/dec2bin/llms-full.txt)
