PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
FinPaymentNb (Function)
In French: FinNbVersement
Returns the number of payments required to pay off a capital according to a given rate.
Versions 17 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 17
iPhone/iPad This function is now available for the iPhone/iPad applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Versions 18 and later
Universal Windows 10 App This function is now available in Windows Store apps mode.
New in version 18
Universal Windows 10 App This function is now available in Windows Store apps mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Versions 23 and later
Java This function is now available for the Java applications.
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
New in version 23
Java This function is now available for the Java applications.
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
Java This function is now available for the Java applications.
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
// Number of necessary payments: the amount of payments
// is set to 7500 Euros,
// the interest rate is set to 5% and the amount borrowed is
// set to 42000 Euros.
ResNbPayment = FinPaymentNb(-7500, 5, 42000)
Syntax
<Result> = FinPaymentNb([<Value of Payment> [, <Rate> [, <Capital>]]])
<Result>: Real
Number of payments to perform. This number can be:
  • negative: a payment must be made;
  • positive: a credit must be made.
<Value of Payment>: Optional real or currency
Value of payment (0 by default). For a credit, this value must be negative.
<Rate>: Optional real
Interest rate, expressed in percentage (1 by default). For example, for a 5% rate, this parameter will be set to 5.
<Capital>: Optional real or currency
Amount of loan (1 by default).
Remarks
Caution: FinPaymentNb returns no error code. To find out whether errors have been generated by this function, use FinError. To find out the error details, use ErrorInfo associated with the errMessage constant.
Related Examples:
The financial functions Unit examples (WINDEV): The financial functions
[ + ] Using the main functions for performing financial calculations in WINDEV:
- Calculate the number of repayments
- Calculate the future value of an investment
The financial functions Unit examples (WEBDEV): The financial functions
[ + ] This example presents the main functions for financial calculations of WEBDEV and it allows you to:
- Calculate the number of reimbursements
- Calculate the future value of an investment
The Financial functions Unit examples (WINDEV Mobile): The Financial functions
[ + ] Use of financial functions.
This example calculates the number of payments needed to pay back a loan, the total cost of a loan as well as the interests returned by an investment.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230mat.dll
Windows Mobile wp230mat.dll
Java wd230java.jar
Linux wd230mat.so
Android wd230android.jar
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment