Ready, steady… save!
You don’t need a chart to join in. Here are 2 ways to record your savings:
1. Cross it off
Pop a chart into your first post. Saved an amount? Cross it out! Read more »
£0.01 £0.02 £0.03
2. Write it down
Skip the chart and add updates to your first post. Read more »
“Another +£3 saved today. Go me!”
Use +£ before each new saving so it counts towards your total.
We’d like to remind Forumites to please avoid political debate on the Forum.
This is to keep it a safe and useful space for MoneySaving discussions. Threads that are – or become – political in nature may be removed in line with the Forum’s rules. Thank you for your understanding.
Loan Calculations
Hi,
I am a student completing A-Levels and my coursework is based on calculating loan and mortgage repayments and savings. The point of the coursework is to create a program (it's a computing A-Level) which will estimate how much a customer will need to repay over a given amount of time. I have a problem with how it's currently working though, probably best to give an example... (Please bear in mind this program is incredibly simple at the moment and is not intended to give accurate estimates, I just want to know why there's a big difference in the calculated and real loans).
I searched moneysupermarket.com for an example loan to check my current program against, so I used a loan of £10,000 at 6.6% (APR) to be repaid in 5 years (this comes to a total of £11,713.80 to be repaid according to the quote). If I put these numbers into the program in its current state I get £13,756.31 total to be repaid. My question is, what have I done wrong? (My calculation equation is included below) Or is it that there is some more calculating going on by the lender which reduces the amount I've calculated it should be?
Multiply (APR/100) by capital value to get the interest to be paid for a single time period (e.g. 1 of 5 years). Add this interest value to the capital. After first year do a compound interest for the next year, and repeat this for however many years there are.
For a more pseudo-code style if this makes it clearer:
for numyears do
{set interest = capital * (rate/100)
set capital = capital + interest}
Thanks for any help!
I am a student completing A-Levels and my coursework is based on calculating loan and mortgage repayments and savings. The point of the coursework is to create a program (it's a computing A-Level) which will estimate how much a customer will need to repay over a given amount of time. I have a problem with how it's currently working though, probably best to give an example... (Please bear in mind this program is incredibly simple at the moment and is not intended to give accurate estimates, I just want to know why there's a big difference in the calculated and real loans).
I searched moneysupermarket.com for an example loan to check my current program against, so I used a loan of £10,000 at 6.6% (APR) to be repaid in 5 years (this comes to a total of £11,713.80 to be repaid according to the quote). If I put these numbers into the program in its current state I get £13,756.31 total to be repaid. My question is, what have I done wrong? (My calculation equation is included below) Or is it that there is some more calculating going on by the lender which reduces the amount I've calculated it should be?
Multiply (APR/100) by capital value to get the interest to be paid for a single time period (e.g. 1 of 5 years). Add this interest value to the capital. After first year do a compound interest for the next year, and repeat this for however many years there are.
For a more pseudo-code style if this makes it clearer:
for numyears do
{set interest = capital * (rate/100)
set capital = capital + interest}
Thanks for any help!
0
Comments
-
if I understand the question correctly
your answer is wrong because your equation is wrong
a. because it should read
set capital = capital + interest - repayment
b. also of course its monthly and not yearly
so
for nummonths do
{set interest = capital * (rate/(100*12)}EU tariff on agricultual product 12.2%
some dairy products 42.1% cloths 11.4%
EU Clinical Trials Directive stops medical advances0 -
OK I've tried this and it doesn't quite work.
I've made it so that it asks for the repayment value (per month) and obviously this means that it reduces the capital left to pay, (and set it to do the months rather than years).
Here's some input: cap: £10k, years: 5, rate: 6.6, repayment (as specified by the lender): £195.23 (per month).
And the output reduces the amount of money originally owned for 5 years (60 months) and then has £399.83 left over, which is now less than the difference between the original loan value and the total to be paid (which is £1713.80 from the website).
However the new capital values it output for each month is how much capital would be left to pay (overall) isn't it? So that £399.83 would be how much is left to pay after 5 years, which doesn't make sense. Sorry for being stupid, it may just be me not getting the code logic right.
Thanks for the help though0 -
you dont of course know the exact assumptions being made by the lender (do they assume the first paymnt is made exactly one month after the loan is made etc)
also what monthly interest rate are you assuming
if the APR is 6.6% then its NOT correct to apply 6.6%/12 because this doesnot compound correctly
so instead of 6.6/12 = 0.055
you need to use 0.0534 which compounds to 6.6%
i.e. ((1+0.534)power 12)-1) = 6.6EU tariff on agricultual product 12.2%
some dairy products 42.1% cloths 11.4%
EU Clinical Trials Directive stops medical advances0 -
Hi, Here's something I knocked up earlier.
You can use the formula in your program.
Mortgage / Loan / APR and AER
Note;- AER Relates to Calculations for Saving Accounts. APR Relates to Loans Mortgages etc
The Method for Deducing from first principles an equation for APR (Annualised Percentage Rate) is shown Below:-
Example:- Apply an interest rate to a loan every Period and then deduct from that loan a set amount every Period until Loan Repaid :-
Borrow £100 for 3 year @ 10% Interest with repayments of "S" every month.
Note:- Interest Rate of 10% is used in the equation as = 1.1 because we want to know the Total sum on the capital + the Interest therefore the sum of the (Loan + Interest) Equals :-
(100 x 10%) +100 = 100(0.1 +1) = 100 x 1.1 (Q.E.D)
1st Year (100 x 1.1) - S.
2nd Year [( 100x1.1)- S) x (1.1 - S)]
3rd Year (100 x 1.12 - 1.1S - S) x (1.1- S)
This Equals 100 x 1.13 - S 1.12 - S1.1 - S = 0 (Eqn 1)
Multiply this equation by the common factor 1.1
This equals 100 x 1.14 - S1.13 - S1.12 - S1.1 = 0 (Eqn 2)
Subtract Eqn (1) from Eqn (2) by cross cancelling
This leaves:- 100 x 1.14 - 100 x 1.13 - S1.13 + S = 0 note:- Minus, MinusS (- - S) = + S
100 x 1.14 - 100 x 1.13 = S1.13 - S
Therefore:- S = 100(1.14 - 1.1 3)
.............................(1.13 - 1)
Rearrange in standard form:-
P = Principle. r = Annual Interest Rate. R = (1+ r). S = Periodic repayment.
n = Period (mth etc.)
S = P ( R^(n+1) - R^n )
........................(R^n) - 1
Note:- When dealing with Loans and Mortgages the normal repayment period is a month.
In these cases the 12 root of R would be used to represent a period of one month
In the example above 1.1 would be replaced by 1.1^(1/ 12) = 1.00797414
The period "n" would read 36 equalling 3 x 12.
In the case (n + 1). 1 is always 1 irrespective of whether the periods are months or years.
Hope this helps
NB:- The dots are just to keep the formula in the right place.It was a bit of a job to paste
Regards Mick0 -
The above formula is right for 99.9% of uk mortgages as the repayments are due monthly in advance.
What you dont realise though is it works on the nominal interest rate as such you cannot compare it to an actual mortgage quote that only illustrates the APR. You cannot calculate the nominal from the APR because all uk mortgage quotes in the calculation of APR have to include a prescribed sum to account for legal fees. This sum varies with the size of the mortgage and is unknow to most people including banks and building society staff even at head office level.
And dont ask me what it is either I phoned all over the place trying to find it out some years ago when I wrote simlar programs.
EDIT...
Here's some financial formulas for you which i've just googled to find. I'm sure you can get your head round them I did when I tried 25 years after leaving school with cse maths
http://www.wheatworks.com/financial-formula.htm0 -
Thanks everyone. After tinkering with some code for a while I've managed to make it much more accurate and it seems to be working fairly well now.
I did find some of those formulae before and have tried using them but I think I messed up rearranging them. I suppose it would have helped working it out on paper rather than trying to do this on a screen and in my head!
0 -
If you ever find a formula for regular savings that increase year by year at a fixed pecentage let me know. I remember spending hours trying to find/make one but never did and had to resort to a speadsheet.
Not that it would be of any use to me now but i'd be interested all the same.0
This discussion has been closed.
Categories
- All Categories
- 356K Banking & Borrowing
- 255K Reduce Debt & Boost Income
- 456.3K Spending & Discounts
- 248.5K Work, Benefits & Business
- 606.3K Mortgages, Homes & Bills
- 179.1K Life & Family
- 264.1K Travel & Transport
- 1.6M Hobbies & Leisure
- 16.2K Discuss & Feedback
- 37.7K Read-Only Boards