contents.gifprev1.gifnext1.gif

R78() - Rule of 78 interest rebate

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

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

PowerBuilder Function declaration

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

Visual Basic Function declaration

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

C/C++ Synopsis

#include "function.h"

double R78(long lMonth, long lRepay, double dFinCharge)

32 bit DLL declarations

PowerBuilder Function declaration

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

Visual Basic Function declaration

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

C/C++ Synopsis

#include "function.h"

double R78(long lMonth, long lRepay, double dFinCharge)

Example:

lMonth
=
48

lRepay
=
35

dFinCharge
=
4080

Result: $ 315.71