contents.gifprev1.gifnext1.gif

ATC() - Average cost

Calculates the average total cost of replacement equipment.

Returns

Double value if successful. If an error occurs, this function returns a zero.

Arguments

Type
Field
Description
double
dPrice
Price of asset
double
dIncrOpExp
Increase of operating expenses
double
dIncrMaint
Increase of maintenance expenses
double
dOpExp
Operating expenses in first year
double
dMaintExp
Maintenance expenses in first year
16 bit DLL declarations

PowerBuilder Function declaration

function double ATC(double dPrice, double dIncrOpExp, double dIncrMaintExp, double dOpExp, double dMaintExp) library "IFL16.DLL"

Visual Basic Function declaration

Declare Function ATC lib "IFL16" (ByVal dPrice As Double, ByVal dIncrOpExp As Double, ByVal dIncrMaintExp As Double, ByVal dOpExp As Double, ByVal dMaintExp As Double) As Double

C/C++ Synopsis

#include "function.h"

double ATC(double dPrice, double dIncrOpExp, double dIncrMaintExp, double dOpExp, double dMaintExp)

32 bit DLL declarations

PowerBuilder Function declaration

function double ATC(double dPrice, double dIncrOpExp, double dIncrMaintExp, double dOpExp, double dMaintExp) library "IFL32.DLL"

Visual Basic Function declaration

Declare Function ATC lib "IFL32" (ByVal dPrice As Double, ByVal dIncrOpExp As Double, ByVal dIncrMaintExp As Double, ByVal dOpExp As Double, ByVal dMaintExp As Double) As Double

C/C++ Synopsis

#include "function.h"

double ATC(double dPrice, double dIncrOpExp, double dIncrMaintExp, double dOpExp, double dMaintExp)

Example:

dPrice
=
28,000

dIncrOpExp
=
1,500

dIncrMaintExp
=
1,200

dOpExp
=
14,000

dMaintExp
=
2,000

Result: $ 14,654.55