contents.gifprev1.gifnext1.gif

OPC() - Odd period calculation

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

PowerBuilder Function declaration

function double OPC(double dPrincipal, double dBalloon, double dInt, long lTerm, long lDays) library "IFL16.DLL"

Visual Basic Function declaration

Declare Function OPC lib "IFL16" (ByVal dPrincipal As Double, ByVal dBalloon As Double, ByVal dInt As Double, ByVal lTerm As Long, ByVal lDays As Long) As Double

C/C++ Synopsis

#include "function.h"

double OPC(double dPrincipal, double dBalloon, double dInt, long lTerm, long lDays)

32 bit DLL declarations

PowerBuilder Function declaration

function double OPC(double dPrincipal, double dBalloon, double dInt, long lTerm, long lDays) library "IFL32.DLL"

Visual Basic Function declaration

Declare Function OPC lib "IFL32" (ByVal dPrincipal As Double, ByVal dBalloon As Double, ByVal dInt As Double, ByVal lTerm As Long, ByVal lDays As Long) As Double

C/C++ Synopsis

#include "function.h"

double OPC(double dPrincipal, double dBalloon, double dInt, long lTerm, long lDays)

Example:

dPrincipal
=
4500

dBalloon
=
0

dInt
=
0.0125
(1.25%)
lTerm
=
36

lDays
=
46

Result: $ -157.03