contents.gifprev1.gifnext1.gif

OPCV() - Odd period calculation with variable period term

Calculates the payment of the first full payment. The period from the date that interest begins accruing to the date of the first payment, when not equal to the regular payment period, is sometimes referred to as an odd first period.

Returns

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

Arguments

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
16 bit DLL declarations

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
Result: $ -78.81