syd Function
Dynamics AX 4.0
Calculates the depreciation of an asset over a specified period.
real syd(real _price, real _scrap, real _life, int _period)
In the following examples, the periodic depreciation is calculated for an asset with a purchase price of 10000, a scrap value of 2000, and a life of 5.
In comparison, sln(10000,2000,5) would calculate 1600.00 for each period.
// Returns the value 2666.67 (for the 1st period). syd(10000,2000,5,1); // Returns the value 2133.33 (for the 2nd period). syd(10000,2000,5,2); // Returns the value 1600.00 (for the 3rd period). syd(10000,2000,5,3); // Returns the value 1066.67 (for the 4th period). syd(10000,2000,5,4); // Returns the value 533.33 (for 5th - and final- period). syd(10000,2000,5,5);
Community Additions
ADD
Show: