Where is the declaration of these variables? You defined P, r, t but there is no variable INTEREST_PER_YEAR, PAYMENTS_PER_YEAR (you may need to declare them as constant) in the code you posted. Can you post the full function instead?
__________________
Thanks in advance.
Regards,
Senthil Kumar M.
|