CodeCogs - An iteractive open source Numerical library Welcome... Login
CodeCogs
shopping cart
OSXWindowsLinux
Search CodeCogs
Numerical Components

Valid RSS

FinanceAccounting

deprec Sum Of Years

Only available under a commercial licence
COST (GBP)
this unit 3.35
sub units 0.00
add a commercial licence to your cart
0
viewed 1525 times and licensed 3 times

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

Controller: CodeCogs  Contact Controller
+View version details
Contents hide toc
buy now     add cart

Interface

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

using namespace Finance::Accounting;

double deprecSumOfYears (double cost, double salvage, int life, int per)
Calculate the sum-of-years depreciation of an asset. Excel: SYD
ExcelReal cc_deprecSumOfYears (Real cost, Real salvage, Integer life, Integer per)
This function is available as a Microsoft Excel add-in.

Function Documentation

Deprec Sum Of Years Calculator
  
Add calculator to website or email
 
doubledeprecSumOfYearsdoublecost
doublesalvage
intlife
intper )
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)}
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 useful life of the asset.
perThe period for which to calculate the depreciation.
Returns:
The depreciation of the asset.
Authors:
James Warren (July 2005)
Source Code:

To view or download source code you need to buy a Commercial licence.

buy now     add cart

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


Page Comments

Format Excel Equations

  You must login to leave a messge


Last Modified: 18 Oct 07 @ 17:07     Page Rendered: 2010-03-14 16:22:11

Valid CSS!   Valid XHTML 1.0 Transitional