Post Reply 
(17B/19B) GPM: initial payment
05-27-2024, 02:23 PM
Post: #14
RE: (17B/19B) GPM: initial payment
(05-25-2024 08:40 PM)Albert Chan Wrote:  Another way is let r = pv(k) / pmt(k), eliminated the need for s^p

lua> r = -1 / c300 -- = pv6/pmt6
lua> for k=1,5 do r = (d12*r*s - 1) / c12 end
lua> pv / r -- = pmt
-474.82512976281373

We can remove loops, and get direct formula for pv/pmt

Let q = s*d12/c12 = s / (1+i)^12

r6 = -1/c300
r5 = q*r6 - 1/c12
r4 = q^2*r6 - (1 + q) / c12
r3 = q^3*r6 - (1 + q + q^2) / c12
r2 = q^4*r6 - (1 + q + q^2 + q^3) / c12
r1 = q^5*r6 - (1 + q + q^2 + q^3 + q^4) / c12

--> pv/pmt = -q^5 / c300 - (q^5-1)/(q-1) / c12

This matched Gil's formula (sign convention and typo corrected)

PV/PMT = (v^(360-12*5)-1)/i * (s*v^12)^5 + (v^12-1)/i * sum((s*v^12)^j, j=0..(5-1))

where s = 1.075, i = 0.01, v = 1/(1+i)
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
(17B/19B) GPM: initial payment - SlideRule - 05-22-2024, 11:39 AM
RE: (17B/19B) GPM: initial payment - Gil - 05-25-2024, 04:05 PM
RE: (17B/19B) GPM: initial payment - Gil - 05-25-2024, 08:22 PM
RE: (17B/19B) GPM: initial payment - Albert Chan - 05-27-2024 02:23 PM
RE: (17B/19B) GPM: initial payment - Gil - 05-25-2024, 09:12 PM
RE: (17B/19B) GPM: initial payment - Gil - 05-25-2024, 11:52 PM
RE: (17B/19B) GPM: initial payment - Gil - 05-29-2024, 07:08 PM
RE: (17B/19B) GPM: initial payment - Gil - 05-30-2024, 01:08 AM
RE: (17B/19B) GPM: initial payment - Gil - 05-30-2024, 03:14 AM
RE: (17B/19B) GPM: initial payment - Gil - 06-01-2024, 10:43 AM
RE: (17B/19B) GPM: initial payment - Gil - 06-01-2024, 11:57 AM
RE: (17B/19B) GPM: initial payment - Gil - 06-17-2024, 08:32 PM
RE: (17B/19B) GPM: initial payment - Gil - 06-18-2024, 08:03 AM
RE: (17B/19B) GPM: initial payment - Gil - 06-20-2024, 01:28 PM



User(s) browsing this thread: 3 Guest(s)