COST (GBP)

4.02

0
deprec Sum Of Years
Calculate the sum-of-years depreciation of an asset.
Excel: SYD
Controller:
CodeCogs
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.
<span align="right" style="background-color:99FF99"><strong>Excel: SYD</strong></span> |
These functions are available for Microsoft Excel (
Login to download):
| Real | cc_deprecSumOfYears (Real cost, Real salvage, Integer life, Integer per) |
Use the following HTML code to embed the calculators within other websites:
| Name | HTML Code |
|---|
deprecSumOfYears
Calculate the sum-of-years depreciation of an asset.
Excel: SYD | |
DeprecSumOfYears
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
| 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.
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.
You must login to leave a messge