# Loan calculator, total of all payments

Page 1 of 1

## 2 Replies - 3159 Views - Last Post: 31 March 2009 - 07:35 PMRate Topic: //<![CDATA[ rating = new ipb.rating( 'topic_rate_', { url: 'http://www.dreamincode.net/forums/index.php?app=forums&module=ajax&section=topics&do=rateTopic&t=96331&amp;s=a971108fcf1a8bf76c3469c14d47a610&md5check=' + ipb.vars['secure_hash'], cur_rating: 0, rated: 0, allow_rate: 0, multi_rate: 1, show_rate_text: true } ); //]]>

### #1 arichguy

• New D.I.C Head

Reputation: 0
• Posts: 4
• Joined: 22-March 09

# Loan calculator, total of all payments

Posted 30 March 2009 - 07:44 PM

Can someone please assist me in solving this, I need to find the total of all payments at the end of the loan period.
example, Mr. X borrows \$100,000 for 15 years at the rate of 10%. The total of all payments is supposed to be \$193,428.92. If someone can post the code for this I'll really appreciate.
Is This A Good Question/Topic? 0

## Replies To: Loan calculator, total of all payments

### #2 krum110487

• D.I.C Regular

Reputation: 39
• Posts: 291
• Joined: 07-February 09

## Re: Loan calculator, total of all payments

Posted 31 March 2009 - 05:18 AM

well I know there is an equation for this...but I hated calc 2 with a passion and just the spite it I will do it the "dumb" way...

```int X as Integer = 100,000

loop (15 times)
X += X * .1
next

```

of course this isn't exact, I will leave it to you to figure out the rest.

Next time please show the code you have.

This post has been edited by krum110487: 31 March 2009 - 05:19 AM

### #3 arichguy

• New D.I.C Head

Reputation: 0
• Posts: 4
• Joined: 22-March 09

## Re: Loan calculator, total of all payments

Posted 31 March 2009 - 07:35 PM

Thanks!