ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Numeric values functions / Financial functions
  • Amount of interests due
FinPeriodInterest (Example)
Amount of interests due
WINDEVWEBDEV - Server codeReports and QueriesUser code (UMC)Ajax The following code is used to find out the amount of interests due. The amount, the rate, the period and the duration of the loan are entered by the user in edit controls (EDT_Amount, EDT_Rate, EDT_Period, EDT_Duration).
We assume that the values entered by the user correspond to the same time unit.
// -- Click code on BTN_InterestPeriod
// Declare the variable
ResInterestPeriod is real
// Calculate the amount of interests due
ResInterestPeriod = FinPeriodInterest(EDT_Amount, EDT_Rate, EDT_Period, EDT_Duration)
IF FinError() = 0 THEN
Info("The amount of interests due is: " + ResInterestPeriod)
ELSE
// Display the error message
Error(ErrorInfo(errMessage))
END
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help