

GPM() - Graduated payment mortgage
| Type
| Field
| Description
|
| double
| dPrincipal
| Loan principal
|
| double
| dInt
| Interest percentage per year
|
| double
| dIntIncr
| Interest percentage increase year-over-year
|
| double
| dYrIncr
| Total number of years of increasing rates
|
| long
| lPeriods
| Total number of payments
|
| integer
| iPerYr
| Number of payments per year
|
| integer
| iYr
| Payment per period for year: dYr
|
PowerBuilder Function declaration
function double GPM(double dPrincipal, double dInt, double dIntIncr, double dYrIncr, long lPeriods, int iPerYr, int iYr) library "IFL16.DLL"
Visual Basic Function declaration
Declare Function GPM lib "IFL16" (ByVal dPrincipal As Double, ByVal dInt As Double, ByVal dIntIncr As Double, ByVal dYrIncr As Double, ByVal lPeriods As Long, ByVal iPerYr As Integer, ByVal iYr As Integer) As Double
C/C++ Synopsis
#include "function.h"
double GPM(double dPrincipal, double dInt, double dIntIncr, double dYrIncr, long lPeriods, int iPerYr, int iYr)
32 bit DLL declarations
PowerBuilder Function declaration
function double GPM(double dPrincipal, double dInt, double dIntIncr, double dYrIncr, long lPeriods, int iPerYr, int iYr) library "IFL32.DLL"
Visual Basic Function declaration
Declare Function GPM lib "IFL32" (ByVal dPrincipal As Double, ByVal dInt As Double, ByVal dIntIncr As Double, ByVal dYrIncr As Double, ByVal lPeriods As Long, ByVal iPerYr As Integer, ByVal iYr As Integer) As Double
C/C++ Synopsis
#include "function.h"
double GPM(double dPrincipal, double dInt, double dIntIncr, double dYrIncr, long lPeriods, short sPerYr, short sYr)
Example:
| dPrincipal
| =
| 50,000
|
|
| dInt
| =
| 0.125
| (12.5%)
|
| dIntIncr
| =
| 0.05
| (5%)
|
| dYrIncr
| =
| 5
|
|
| lPeriods
| =
| 360
|
|
| iPerYr
| =
| 12
|
|
| iYr
| =
| 3
|
|