# DB Function

> Calculate the depreciation of an asset for a period with the fixed-declining balance method using DB in TX Sheet Control: months in year one, errors.

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

---

Return the depreciation of an asset for a given period with the fixed-declining balance method. `cost` is the initial cost of the asset, `salvage` its value at the end of the depreciation, `life` the number of periods of the depreciation and `period` the period to calculate. `factor_or_month` is the number of months in the first year, 12 when omitted. A negative cost, a `life` of zero or less, a `period` less than 1, or a number of months less than 1 or greater than 12 returns `#NUM!`.

### Syntax

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

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

Available for supported offline calculation.

### Examples

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

The formula returns 369, the depreciation in the first of 5 years of an asset that costs 1,000 and is worth 100 at the end: a fixed rate of 36.9% of the remaining value.

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:** [DAYS360 Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/days360/llms-full.txt)
- **Next:** [DBCS Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/dbcs/llms-full.txt)
