Author Topic: Line Editor  (Read 5494 times)

0 Members and 1 Guest are viewing this topic.

Offline Pete

  • Forum Resident
  • Posts: 2361
  • Cuz I sez so, varmint!
    • View Profile
Re: Line Editor
« Reply #15 on: February 09, 2021, 04:16:16 pm »
Wow, that brought back a lot of memories of all the scribbles I had over several sheets of cheap brown paper, which lead up to such a formula. That does look very similar, and could be exact, but my memory of over 4 decades ago is a little cloudy. Sorry about that.

Pete
Want to learn how to write code on cave walls? https://www.tapatalk.com/groups/qbasic/qbasic-f1/

Offline NOVARSEG

  • Forum Resident
  • Posts: 509
    • View Profile
Re: Line Editor
« Reply #16 on: February 09, 2021, 07:12:09 pm »
@bplus


A = P * i * (1 + i) ^ n / ((1 + i) ^ n - 1)   eq 1
where
A = monthly payment
P = amount borrowed !!!
The above equation works but look at this one

mp = i * (A * (1 + i) ^ n - P) / ((1 + i) ^ n - 1)   eq2

where mp = monthly payment

A = Amount borrowed
i = interest rate   = APR / 12
n = number of monthly payments
P = Principal

Most books on finance and anywhere on the net do not consider the above equation.

Initially, the amount borrowed = Principal. (That is where the confusion comes from)  The fact is  the Principal gets paid down so the amount borrowed is NOT the same as the Principal. The above equation proves that.

The amount borrowed stays the same
The Principal decreases (to zero usually)

The principal usually decreases to zero as it is paid down. If P = 0 then eq 2 can  be written as

mp = i * A * (1 + i) ^ n / ((1 + i) ^ n - 1)

« Last Edit: February 10, 2021, 12:48:22 am by NOVARSEG »