Syd(Cost: Double; Salvage: Double; Life: Double; Period: Double): Double;
Syd(Cost: double; Salvage: double; Life: double; Period: double): double;
Parameters | Description | Constraints |
Cost | Cost for acquiring an asset. | Cannot be negative. |
Salvage | Value of an asset at the end of the depreciation period. | Must belong to the [0;Cost] interval. |
Life | The number of the asset's depreciation periods. | Must be positive. |
Period | Period (must be measured in the same units as the time of full depreciation). | Must be in the [1;Life] interval. |
The Syd method returns the size of the asset depreciation for this period, calculated using a "sum of annual numbers" method.
Syd is calculated using the following formula:
To execute the example, add a link to the MathFin system assembly.
Sub UserProc;
Var
r: Double;
Begin
r := Finance.Syd(15000.1, 1000, 24, 5);
Debug.WriteLine(r);
End Sub UserProc;
After executing the example the console window displays the asset depreciation value for a period, equal to 933.34.
The requirements and result of the Fore.NET example execution match with those in the Fore example.
Imports Prognoz.Platform.Interop.MathFin;
…
Public Shared Sub Main(Params: StartParams);
Var
r: double;
Finance: FinanceClass = New FinanceClass();
Begin
r := Finance.Syd(15000.1, 1000, 24, 5);
System.Diagnostics.Debug.WriteLine(r);
End Sub;
See also: