Post Reply 
(17B/19B) GPM: initial payment
05-28-2024, 05:56 AM (This post was last modified: 05-28-2024 11:38 AM by Werner.)
Post: #17
RE: (17B/19B) GPM: initial payment
(05-27-2024 02:23 PM)Albert Chan Wrote:  We can remove loops, and get direct formula for pv/pmt
--> pv/pmt = -q^5 / c300 - (q^5-1)/(q-1) / c12

Hi Albert,
that is literally what I did in the very first reply to Sliderule's original post.
The only difference is that I tried to make use of the ('standard',high-precision) financial functions USPV,USFV etc and so I had to find the q% if q = 1 + q%/100 in your formula.
This is my latest concoction, no local variables:

Code:
GPM:PV+(USPV(I%÷12:12)×USFV((G%-USFV(I%÷12:12)×I%÷12)÷SPFV(I%÷12:12):N)+USPV(I%÷12:(M-N)×12)×SPFV(G%:N)÷SPFV(I%÷12:N×12))×PMT

or, with a bit of comments:

Code:
GPM:PV+
 (                                                      -- first N terms:
    USPV(I%÷12:12)                                      --   PV of 12 PMTs
   ×USFV((G%-USFV(I%÷12:12)×I%÷12)÷SPFV(I%÷12:12):N)    --   1 + K + K^2 + .. K^N-1, K = G/F, F = (1 + (I%/12)/100)^12
   +                                                    -- last M-N terms:
    USPV(I%÷12:(M-N)×12)                                --   PV of (M-N)x12 PMTs
   ×SPFV(G%:N)                                          --   multiply by G^N
   ÷SPFV(I%÷12:N×12)                                    --   bring to PV, divide by F^N = (1 + (I%12)/100)^(12xN)
 )×PMT

(I put PMT at the end so that it's the last entry in the solver menu)

Cheers, Werner

41CV†,42S,48GX,49G,DM42,DM41X,17BII,15CE,DM15L,12C,16CE
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 - Werner - 05-28-2024 05:56 AM
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: 5 Guest(s)