Post Reply 
(17B/19B) GPM: initial payment
05-24-2024, 07:13 AM (This post was last modified: 05-24-2024 02:41 PM by Werner.)
Post: #2
RE: (17B/19B) GPM: initial payment
[Updated to correct an embarrassing error, that still made the first example work ;-)]
Actually, the summation can also be represented in terms of the 'standard' financial functions.
This is what I came up with, on a real machine should be a lot faster to execute:

PV of 1 year of PMT: PMTY = PMT*USPV(I%/12,12)
First N years: PVN = PMTY + PMTY*(G/F) + PMTY*(G/F)^2 + .. PMTY*(G/F)^(N-1)
  G = 1 + G%/100
  F = 1 + F%/100 effective annual rate = (1 + I%/1200)^12, F% = USFV(I%/12,12)*I%/12
  K = 1 + K%/100 = G/F -> K% = (G% - F%)/F
  then PVN = PMTY*USFV(K%,N)
Remaining M-N years PMTY*(G/F)^N*(1 + 1/F + 1/F^2 + .. 1/F^(M-N-1))
  (G/F)^N = SPFV(K%,N)
  1 + 1/F + .. 1/F^(M-N-1) = USPV(F%,M-N)*F

All combined:

T := USFV(I%/12,12);
F% := T*I%/12;
F := 1 + F%/100;
K% := (G% - F%)/F;
PV := PMT*USPV(I%/12,12)*(USFV(K%,N) + SPFV(K%,N)*USPV(F%,M-N)*F);

remark that

             (1+I%/100)^N - 1
USFV(I%,N) = ----------------
                I%/100

             1 - (1+I%/100)^-N
USPV(I%,N) = ----------------
                I%/100


so USPV(I%,N) = USFV(I%,N)/(1+I%/100)^N

given that F = (1+I%/1200)^12
then USPV(I%/12,12) = T/F
and

PV := PMT*T*(USFV(K%,N)/F + SPFV(K%,N)*USPV(F%,M-N));

or, as a 17BII/Plus42 equation, and using the sign convention:
Code:
GPM:0×L(F:1+L(F%:L(T:USFV(I%÷12:12))×I%÷12)÷100)×L(K%:(G%-G(F%))÷G(F))+PV+PMT×G(T)×(USFV(G(K%):N)÷G(F)+SPFV(G(K%):N)×USPV(G(F%):M-N))

Enter
12 I%
7.5 G%
60000 PV
5 N
30 M
PMT -> -474.83 is the initial payment

3 I%
2 G%
300000 PV
PMT -> -1161.50

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 - Werner - 05-24-2024 07:13 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 - 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)