financeaccounting

deprec Straight

Available under GPL (Free) and Commercial licence
get a GPL licence
COST (GBP)
this unit 0.00
sub units 0.00
add a commercial licence to your cart
0
viewed 1509 times and licensed 5 times
www.codecogs.com/d-ox/finance/accounting/deprecstraight.php
Controller: CodeCogs    Contact Controller

Interface

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

using namespace Finance::Accounting;

double deprecStraight (double cost, double salvage, int life)
Calculate the straight-line depreciation of an asset. Excel: SLN
Click for details on using CodeCogs in ExcelReal cc_accountingDeprecStraight (Real cost, Real salvage, Integer life)
This function is available as a Microsoft Excel add-in.

Function Documentation

Deprec Straight Calculator

  

Add calculator to your site or email
 
doubledeprecStraightdoublecost
doublesalvage
intlife )
Calculate the straight-line depreciation of an asset. The following equation is used:
(1)
\displaystyle SLN=\frac{cost-salvage}{life}

Suppose you purchase a boat for £12000 that has a useful life of 20 years and a salvage value of £2000, the depreciation for each year is £500.
Example:
#include <iostream>
#include <codecogs/finance/accounting/deprecstraight.h>
 
int
main(int argc, char *argv[])
{
  printf("Depreciation of an asset purchased for 30000,");
  printf("and salvage for 7500 after 10 years is:\n");
  std::cout<<Finance::Accounting::deprecStraight(30000, 7500, 10);
  std::cout<<std::endl;
 
  return 0;
}
Output:
Depreciation of an asset purchased for 30000, and salvage for 7500 after 10 years is:
2250
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.
Returns:
The straight line depreciation of the asset.
Authors:
James Warren (July 2005)
Source Code:
Register

- To get code register with CodeCogs. Already a Member, then Login.


Last Modified: 18 Oct 07 @ 17:07     Page Rendered: 2008-05-09 15:11:51

Page Comments

  You must login to leave a messge


Valid CSS!   Valid XHTML 1.0 Transitional