

OPCV() - Odd period calculation with variable period term
| Type
| Field
| Description
|
| double
| dPrincipal
| Loan principal
|
| double
| dBalloon
| Balloon payment
|
| double
| dInt
| Interest percentage per period
|
| long
| lTerm
| Total number of payments
|
| long
| lDays
| Actual number of days until the first payment
|
| long
| lPeriodSize
| Length of period in days
|
PowerBuilder Function declaration
function double OPCV(double dPrincipal, double dBalloon, double dInt, long lTerm, long lDays, long lPeriodSize) library "IFL16.DLL"
Visual Basic Function declaration
Declare Function OPCV lib "IFL16" (ByVal dPrincipal As Double, ByVal dBalloon As Double, ByVal dInt As Double, ByVal lTerm As Long, ByVal lDays As Long, lPeriodSize As Long) As Double
C/C++ Synopsis
#include "function.h"
double OPCV(double dPrincipal, double dBalloon, double dInt, long lTerm, long lDays, long lPeriodSize)
32 bit DLL declarations
PowerBuilder Function declaration
function double OPCV(double dPrincipal, double dBalloon, double dInt, long lTerm, long lDays, long lPeriodSize) library "IFL32.DLL"
Visual Basic Function declaration
Declare Function OPCV lib "IFL32" (ByVal dPrincipal As Double, ByVal dBalloon As Double, ByVal dInt As Double, ByVal lTerm As Long, ByVal lDays As Long, lPeriodSize As Long) As Double
C/C++ Synopsis
#include "function.h"
double OPCV(double dPrincipal, double dBalloon, double dInt, long lTerm, long lDays, long lPeriodSize)
Example:
| dPrincipal
| =
| 4500
|
|
| dBalloon
| =
| 0
|
|
| dInt
| =
| 0.00625
| (0.625%)
|
| lTerm
| =
| 36
|
|
| lDays
| =
| 46
|
|
| lPeriodSize
| =
| 15
| 15 = bi-monthly
30 = monthly |