Post Reply 
(17B/19B) GPM: initial payment
05-28-2024, 01:48 PM (This post was last modified: 05-28-2024 01:50 PM by Albert Chan.)
Post: #18
RE: (17B/19B) GPM: initial payment
(05-27-2024 08:38 PM)Albert Chan Wrote:  pv/pmt = -1/c12 - q/c12 - q^2/c12 - q^3/c12 - q^4/c12 - q^5/c300

Hi, Werner

Good tip about using (q-1) as rate.

Last term is FV of (N=5, I=q-1, PV=1/c300, PMT=0)
Others sum to FV of (N=5, I=q-1, PV=0, PMT=1/c12)

All terms have same sign, there is no cancellation issue.
We can combine them all in 1 TVM calculation.

q = s / (1+APY)
q-1 = ((s-1)-APY) / (1+APY)

lua> i, pv = 0.01, 6e4
lua> K = fn'i,n: expm1(log1p(i)*n)' -- = (1+i)^n - 1
lua> USPV = fn'i,n: -K(i,-n)/i'          -- = 1 / cn
lua> APY = K(i,12)
lua> tvm(5, (.075-APY)/(1+APY), USPV(i,300), USPV(i,12), nil) -- = pv/pmt
-126.3623094884877
lua> pv / _ -- = pmt
-474.82512976281373
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-28-2024 01:48 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: 2 Guest(s)