Calculate the sum-of-years depreciation of an asset. <span align="right" style="background-color:99FF99"><strong>Excel: SYD</strong></span>

View versions (1)

Interface

#include <codecogs/finance/accounting/deprecsumofyears.h>

using namespace Finance::Accounting;

Calculate the sum-of-years depreciation of an asset for a specified period. The following equation is used:

SYD=\frac{(cost-salvage)*(life-per+1)*2.0}{life*(life+1.0)}
(1)

Example 1

#include <iostream>
#include <codecogs/finance/accounting/deprecsumofyears.h>

int main(void)
{
  std::cout<<Finance::Accounting::deprecSumOfYears(30000, 7500, 10, 1);
  std::cout<<std::endl;

  std::cout<<Finance::Accounting::deprecSumOfYears(30000, 7500, 10, 10);
  std::cout<<std::endl;

  return 0;
}

Output:

4090.91
409.091

Parameters

cost
The initial cost of the asset.
salvage
The value at the end of the depreciation.
life
The number of periods over which the asset is being depreciated, i.e. the <em>useful life</em> of the asset.
per
The period for which to calculate the depreciation.

Returns

The depreciation of the asset.
GPL Licence — free for non commercial use. See Licence details.

Interactive Calculator

cost
salvage
life
per
Result