This is a project for school, and the program will build and run just fine, but the amount calculated for the payment is about 10 times higher than it should be. I've double checked the formula, it's what our instructor gave us and it's the same as other ones i've found on the internet. I'm not sure if I have the format wrong (using pow is confusing for me sometimes) or what is going on here. Any help would be appreciated.
I can't say that I know much about the formulas used in Load Payment calculation, but yours doesn't look right to me.
I understand p to be the initial investment? And r to be the interest rate? And n to be the number of periods (which seems to be a VERY large number -- periods are not typically days)?
Can you supply a source for the kind of load calculation you are doing?