contents.gifprev1.gifnext1.gif

R78BAL() - Rule of 78 loan balance

Calculates the loan balance. The balance of a loan is calculated after the interest rebate that you save by paying off the loan early. Know elements are the total length of the loan, period when loan is repaid, the total finance charge if loan was not paid off, and the periodically payment.

Returns

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

Arguments

Type
Field
Description
long
lMonth
Total periods of loan
long
lRepay
Repay period
double
dFinCharge
Total finance charge
double
dPMT
Periodically payment
16 bit DLL declarations

PowerBuilder Function declaration

function double R78BAL(long lMonth, long lRepay, double dFinCharge, double dPMT) library "IFL16.DLL"

Visual Basic Function declaration

Declare Function R78BAL lib "IFL16" (ByVal lMonth As Long, ByVal lRepay As Long, ByVal dFinCharge As Double, ByVal dPMT As Double) As Double

C/C++ Synopsis

#include "function.h"

double R78BAL(long lMonth, long lRepay, double dFinCharge, double dPMT)

32 bit DLL declarations

PowerBuilder Function declaration

function double R78BAL(long lMonth, long lRepay, double dFinCharge, double dPMT) library "IFL32.DLL"

Visual Basic Function declaration

Declare Function R78BAL lib "IFL32" (ByVal lMonth As Long, ByVal lRepay As Long, ByVal dFinCharge As Double, ByVal dPMT As Double) As Double

C/C++ Synopsis

#include "function.h"

double R78BAL(long lMonth, long lRepay, double dFinCharge, double dPMT)

Example:

lMonth
=
48

lRepay
=
35

dFinCharge
=
4080

dPMT
=
262.08

Result: $ 3091.33