contents.gifprev1.gifnext1.gif

LIFE() - Optimum service life

Calculates optimum service life.

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
dIncrMaintExp
Increase of maintenance expenses
16 bit DLL declarations

PowerBuilder Function declaration

function double LIFE(double dPrice, double dIncrOpExp, double dIncrMaintExp) library "IFL16.DLL"

Visual Basic Function declaration

Declare Function LIFE lib "IFL16" (ByVal dPrice As Double, ByVal dIncrOpExp As Double, ByVal dIncrMaintExp As Double) As Double

C/C++ Synopsis

#include "function.h"

double LIFE(double dPrice, double dIncrOpExp, double dIncrMaintExp)

32 bit DLL declarations

PowerBuilder Function declaration

function double LIFE(double dPrice, double dIncrOpExp, double dIncrMaintExp) library "IFL32.DLL"

Visual Basic Function declaration

Declare Function LIFE lib "IFL32" (ByVal dPrice As Double, ByVal dIncrOpExp As Double, ByVal dIncrMaintExp As Double) As Double

C/C++ Synopsis

#include "function.h"

double LIFE(double dPrice, double dIncrOpExp, double dIncrMaintExp)

Example:

dPrice
=
28,000

dIncrOpExp
=
1,500

dIncrMaintExp
=
1,200

Result: 4.55 (life)