I have forgotten
my Password

Or login with:

  • Facebookhttp://facebook.com/
  • Googlehttps://www.google.com/accounts/o8/id
  • Yahoohttps://me.yahoo.com
COST (GBP)
this unit 4.02
sub units 0.00
+
0

deprec Sum Of Years

Calculate the sum-of-years depreciation of an asset. Excel: SYD
Controller: CodeCogs

Interface

C++
Excel

DeprecSumOfYears

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

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

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

Returns

The depreciation of the asset.

Authors

James Warren (July 2005)
Source Code

Source code is available when you buy a Commercial licence.

Not a member, then Register with CodeCogs. Already a Member, then Login.