home *** CD-ROM | disk | FTP | other *** search
- Joe:
-
- When we were talking last week, you mentioned that you were thinking about
- buying a house. I went through that exercise recently and wrote a BASIC
- program to help me sort out my options. It lets you see how your monthly
- payments would vary for different interest rates and lengths of mortgage.
- Here it is:
-
- 100 PRINT:PRINT:INPUT "What principal amount";PRIN
- 110 PRINT:PRINT:PRINT USING "\ \ $$###,###";"Principal:",PRIN
- 120 PRINT:PRINT:PRINT " Monthly Payment vs. Years"
- 130 PRINT "Interest 20 25 30 35 40"
- 140 PRINT "-------- ------ ------ ------ ------ ------"
- 150 FMT$=" ##.## $$#,### $$#,### $$#,### $$#,### $$#,###"
- 160 FOR I=1 TO 10:RATE=9.5+.5*I
- 170 FOR J=1 TO 5:YEARS=15+5*J:GOSUB 500:PYM(J)=PAYM:NEXT J
- 180 PRINT USING FMT$;RATE,PYM(1),PYM(2),PYM(3),PYM(4),PYM(5):NEXT I
- 190 PRINT:PRINT:STOP
- 500 PAYM=PRIN*(RATE/1200)/(1-((1+RATE/1200)^(-YEARS*12))):RETURN
-
- I have a few other programs that might help you out too.
-
- Gary