---
title: "Codeunit 5616 Depreciation Calculation"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/5616-depreciation-calculation/
type: codeunit
id: 5616
name: "Depreciation Calculation"
app: "Base Application"
namespace: Microsoft.FixedAssets.Depreciation
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/5616-depreciation-calculation/source/29/"
checked: 2026-09-20
subject: "Microsoft Dynamics 365 Business Central"
license: "Content © 2026 Jonas Paprotka. Quote freely with attribution and a link."
---

# Codeunit 5616 Depreciation Calculation

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/5616-depreciation-calculation/

| | |
| --- | --- |
| App | Base Application |
| Namespace | Microsoft.FixedAssets.Depreciation |
| Versions | 17-28 |
| Source file | FixedAssets/Depreciation/DepreciationCalculation.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| DeprDays | (Date, Date, Boolean) | Integer | public | 17-28 | - | - |
| ToMorrow | (Date, Boolean) | Date | public | 17-28 | - | - |
| Yesterday | (Date, Boolean) | Date | public | 17-28 | - | - |
| SetFAFilter | (var Record FA Ledger Entry, Code[20], Code[10], Boolean) | - | public | 17-28 | - | - |
| CalcEntryAmounts | (Code[20], Code[10], Date, Date, var Decimal) | - | public | 17-28 | - | - |
| UseDeprStartingDate | (Code[20], Code[10]) | Boolean | public | 17-28 | - | - |
| GetFirstDeprDate | (Code[20], Code[10], Boolean) | Date | public | 17-28 | - | - |
| GetMinusBookValue | (Code[20], Code[10], Date, Date) | Decimal | public | 17-28 | - | - |
| AdjustDepr | (Code[10], var Decimal, Decimal, Decimal, Decimal, Decimal) | - | public | 17-28 | - | - |
| AdjustCustom1 | (Code[10], var Decimal, var Decimal, Decimal, Decimal, Decimal, Decimal) | - | public | 17-28 | - | - |
| GetSign | (Decimal, Decimal, Decimal, Decimal) | Integer | public | 17-28 | - | - |
| GetCustom1Sign | (Decimal, Decimal, Decimal, Decimal, Decimal) | Integer | public | 17-28 | - | - |
| GetNewSigns | (var Decimal, var Decimal, var Decimal, var Decimal) | - | public | 17-28 | - | - |
| GetNewCustom1Signs | (var Decimal, var Decimal, var Decimal, var Decimal, var Decimal) | - | public | 17-28 | - | - |
| CalcRounding | (Code[10], Decimal) | Decimal | public | 17-28 | - | - |
| CalculateDeprInPeriod | (Code[20], Code[10], Date, Decimal, Integer, var Decimal, var Decimal, var Decimal, var Decimal) | - | public | 17-28 | - | - |
| GetDeprPeriod | (Code[20], Code[10], Date, var Date, var Date, var Integer, Boolean) | - | public | 17-28 | - | - |
| DeprInFiscalYear | (Code[20], Code[10], Date) | Decimal | public | 17-28 | - | - |
| GetPartOfCalculation | (Option, Option, Code[10]) | Boolean | public | 17-28 | - | - |
| FAName | (var Record Fixed Asset, Code[10]) | Text[200] | public | 17-28 | - | - |
| FADeprBookName | (Code[10]) | Text[200] | public | 17-28 | - | - |
| DeprDays365 | (Date, Date) | Integer | public | 19-28 | - | - |
| DeprDays | (Date, Date, Boolean, Boolean) | Integer | public | 27-28 | - | - |
| ToMorrow | (Date, Boolean, Boolean) | Date | public | 27-28 | - | - |
| Yesterday | (Date, Boolean, Boolean) | Date | public | 27-28 | - | - |
| GetFirstDeprDate | (Code[20], Code[10], Boolean, Boolean) | Date | public | 27-28 | - | - |
| GetDeprPeriod | (Code[20], Code[10], Date, var Date, var Date, var Integer, Boolean, Boolean) | - | public | 27-28 | - | - |
| GetUnpostedBonusDepreciationForCalc | (var Record FA Depreciation Book, Date, Date) | Decimal | internal | 28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnAfterAdjustDepr | (Code[10], Decimal, Decimal, var Decimal) | 17-28 | - | - |
| Integration event | OnAfterCalcDepreciation | (Code[10], var Decimal, Decimal) | 17-28 | - | - |
| Integration event | OnAfterDeprDays | (Date, Date, var Integer) | 17-18 | - | - |
| Integration event | OnBeforeCalcRounding | (Record Depreciation Book, var Decimal, var Boolean) | 17-24 | - | - |
| Integration event | OnAfterDeprDays | (Date, Date, var Integer, Boolean) | 19-28 | - | - |
| Integration event | OnAfterGetDeprPeriod | (Code[20], Code[10], Date, var Date, var Date, var Integer, Boolean) | 19-28 | - | - |
| Integration event | OnBeforeGetFirstDeprDate | (Code[20], Code[10], Boolean, var Date, var Boolean) | 19-28 | - | - |
| Integration event | OnBeforeFindMaxDate | (var Record FA Ledger Entry, Date, Boolean, var Date, var Boolean) | 20-28 | - | - |
| Integration event | OnBeforeUseDeprStartingDate | (Code[20], Code[10], var Boolean, var Boolean) | 20-28 | - | - |
| Integration event | OnAfterGetFAPostingTypeSetup | (var Record FA Posting Type Setup, Option) | 21-28 | - | - |
| Integration event | OnCalcEntryAmountsOnAfterSetFALedgEntryFilters | (var Record FA Ledger Entry, Integer) | 23-28 | - | - |
| Integration event | OnAfterSetFAFilter | (var Record FA Ledger Entry) | 23-28 | - | - |
| Integration event | OnGetFirstDeprDateOnAfterSetFAFilter | (var Record FA Ledger Entry) | 24-28 | - | - |
| Integration event | OnBeforeCalcRounding | (Record Depreciation Book, Decimal, var Decimal, var Boolean) | 25-28 | - | - |

## Source

Symbols: Microsoft.BaseApplication.symbols.437dbf0e-84ff-417a-965d-ed2bb9650972, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-09-20.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at a66254c3b8b5bb1cea290dc8f9d097aec4381153.

Jonas Paprotka, 2026-09-20.
