DDB Function (OpenOffice Calc)
Calculate DDB depreciation in Apache OpenOffice Calc. Compare default and custom factors, salvage caps and the distinction from straight-line switching.
Verification status: Eight ordinary reference formulas were recalculated in Apache OpenOffice 4.1.16 on Linux x86-64, Build 9816, through generated native ODF and GUI hard recalculation. Saved identities, inputs and results were checked. How formula examples are checked
Quick answer: =DDB(1000;100;5;1) returned 400 in the tested Apache OpenOffice 4.1.16 build.
Availability and version history
- Introduced: First release not established; documented by OpenOffice.org 3.3.
- Supported in: Apache OpenOffice 4.1.16; this is a verified release, not a final supported version.
- Scope: Desktop Calc, English function names and semicolon-separated formulas.
- Checked: October 14, 2026. Eight ordinary reference formulas were recalculated from generated ODF in 4.1.16 on Linux x86-64, Build 9816. Source and independent arithmetic were checked.
What DDB returns
DDB returns a declining-balance depreciation charge for a requested period. Its default Factor is 2, giving the familiar double-declining rate Factor/Life. The calculation is capped so the charge does not reduce the modeled balance below Salvage. It does not automatically switch to straight-line depreciation. Release implementation.
Syntax and arguments
DDB(Cost;Salvage;Life;Period[;Factor])
- Cost, Salvage: nonnegative amounts with Salvageā¤Cost.
- Life, Period: use a positive life and a requested period from 1 through Life.
- Factor: optional positive multiplier, default 2. The per-period declining rate is Factor/Life, capped at 1 by the helper.
Eight reproducible examples
The native column contains saved 4.1.16 results; independent references use high-precision arithmetic and the stated source rules. Values are shown to twelve decimal places where needed.
| Formula | Native 4.1.16 result | Independent reference |
|---|---|---|
=DDB(1000;100;5;1) |
400 |
400 |
=DDB(1000;100;5;2) |
240 |
240 |
=DDB(1000;100;5;3) |
144 |
144 |
=DDB(1000;100;5;4) |
86.4 |
86.4 |
=DDB(1000;100;5;5) |
29.6 |
29.6 |
=DDB(1000;100;5;1;1.5) |
300 |
300 |
=DDB(1000;100;5;2;1.5) |
210 |
210 |
=DDB(1000;800;5;1) |
200 |
200 |
Practical worksheet
For Cost=1000, Salvage=100 and Life=5, the default rate is 2/5=0.4. The first charges are 400, 240, 144 and 86.4. Before period 5 the balance is 129.6, so the final listed charge is capped at 29.6, leaving Salvage=100.
A custom factor of 1.5 gives a 30% rate: the first two charges are 300 and 210. With Salvage=800 and the default factor, the first charge is limited to 200 rather than the unconstrained 400.
Advanced interpretation and checks
For rate r<1, the helper computes an unadjusted opening balance Cost*(1-r)^(Period-1) and closing balance Cost*(1-r)^Period. It subtracts the larger of that closing balance and Salvage, then clamps a negative charge to zero.
For factor 1.5, the unadjusted balance after five periods is 1000Ć0.7^5=168.07, still above the entered salvage 100. A straight-line switch would change that outcome; DDB itself does not make that switch. VDB has a separate switch option, with different interval semantics.
Boundaries and troubleshooting
The listed tests use valid integer periods and moderate positive costs. Fractional periods, zero costs, extreme factors and invalid arguments were not executed. The release checks Factor>0, Salvageā¤Cost and 1ā¤Periodā¤Life; the source helperās rate cap is separate from those guards.
A depreciation amount is not a remaining book value: subtract accumulated charges from Cost to obtain that balance. Choose an appropriate accounting method separately from the spreadsheet calculation. The examples verify this releaseās arithmetic, not compliance with a particular depreciation policy.
Related functions
Official evidence and checking scope
The generated ODF produced the informational load warning āNot all attributes could be read.ā The sheet was hard-recalculated and saved separately. All eight ordinary function identities, inputs and results were reconciled; a stale SUM cache changed from 999999 to 3 and an uncached SUM returned 7. This establishes the stated examples, not every workbook style or invalid input. Other explanatory identities are independent calculations. The authoring-tool XLSX was not executed in OpenOffice, and its preview values are not the native results reported here.