How To Calculate Payments in FoxProLast reviewed: January 10, 1997Article ID: Q155692 |
The information in this article applies to:
SUMMARYThe PAYMENT() function in Visual FoxPro allows the user to calculate a payment amount per month based upon a fixed interest rate.
MORE INFORMATIONThe following program displays the monthly payment for a 15-year home mortgage based upon an 8-percent interest rate: nTotal=100000 && total amount borrowed is $100000 nRate=.08/12 && payment is made at the end of each month with fixed && interest ratenPayments=180 && 180 months in 15 year period cDisplay=MESSAGEBOX("Your monthly payment is" ; +" "+"$"+ALLTRIM(STR(PAYMENT(nTotal,nRate,nPayments)))) REFERENCESVisual FoxPro, Help file, version 5.0; search on: "PAYMENT()"
|
KBCategory: kbprg kbhowto
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |