20.11.2018 Views

The Economic Consequences of Homelessness in The US

The Economic Consequences of Homelessness in The US

The Economic Consequences of Homelessness in The US

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>The</strong> one-l<strong>in</strong>er for a program would be (adjust for your favorite language):<br />

M = P * (J/(1-(1+J) ** -N))<br />

So now you should be able to calculate the monthly payment, M. To calculate the<br />

amortization table you need to do some iteration (i.e. a simple loop). I will tell you the<br />

simple steps :<br />

Step 1: Calculate H = P x J, this is your current monthly <strong>in</strong>terest<br />

Step 2: Calculate C = M - H, this is your monthly payment m<strong>in</strong>us your monthly <strong>in</strong>terest,<br />

so it is the amount <strong>of</strong> pr<strong>in</strong>cipal you pay for that month<br />

Step 3: Calculate Q = P - C, this is the new balance <strong>of</strong> your pr<strong>in</strong>cipal <strong>of</strong> your loan.<br />

Step 4: Set P equal to Q and go back to Step 1: You thusly loop around until the value<br />

Q (and hence P)<br />

goes to zero.<br />

Programmers will see how this makes a trivial little loop to code, but I have found that<br />

many people now surf<strong>in</strong>g on the Internet are NOT programmers and still want to<br />

calculate their mortgages! So this page was dedicated more to the latter. If you have<br />

any further questions you can contact me for more <strong>in</strong>fo.<br />

F<strong>in</strong>d<strong>in</strong>g the Number <strong>of</strong> Periods given a Payment, Interest and Loan<br />

Amount<br />

This formula previously was not explicit enough!! <strong>The</strong> 1/q factor <strong>in</strong> there was to<br />

convert the number <strong>of</strong> periods <strong>in</strong>to years. For number <strong>of</strong> payments this must<br />

actually be left out.<br />

Many people have asked me how to f<strong>in</strong>d N (number <strong>of</strong> payments) given the payment,<br />

<strong>in</strong>terest and loan amount. I didn't know the answer and <strong>in</strong> my calculators I f<strong>in</strong>d it by<br />

do<strong>in</strong>g a b<strong>in</strong>ary search over the payment formula above. However, Gary R. Walo (<br />

nenonen5@southeast.net) found the answer to the actual formula <strong>in</strong> the book: <strong>The</strong> Vest<br />

Pocket Real Estate Advisor by Mart<strong>in</strong> Miles (Prentice Hall).<br />

Here is the corrected formula:<br />

n = - (LN(1-(B/m)*(r/q)))/LN(1+(r/q))<br />

# years = - 1/q * (LN(1-(B/m)*(r/q)))/LN(1+(r/q))<br />

Where:<br />

<br />

<br />

<br />

q = amount <strong>of</strong> annual payment periods<br />

r = <strong>in</strong>terest rate<br />

B = pr<strong>in</strong>cipal<br />

Page 233 <strong>of</strong> 289

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!