=-+=-+=› LOANPLUS/Gary B. Tyler - › 18 Feb 1985› LOANPLUS MORTGAGE AND LOAN ANALYSIS› Documentation- File is on this disk› Reprinted by OL' HACKERS AUG, N.Y.› › (LOAD PROGRAM WITH BASIC!)›› Numerous programs intended to› calculate mortgage or other loan› information have been written. Some› have appeared in the ATARI supported› computer magazines over the last› couple of years. As good as some of› them have been, there always seemed to› be shortcomings.›› Typically, you would be required to› enter the loan amount, interest rate,› and the length of the loan. The› program would then calculate the› monthly payment as well as allow an› amortization schedule to be displayed› or printed.›› It seemed to me, though, that there› might be occasions when either the› loan amount, the interest rate, or the› loan length might be what one would› want to calculate.›› The following program is an attempt at› expanding the flexibility of the loan› concept. It will allow any of the› variables in the standard interest› formula to be calculated, and more.›› A=P(i(1+i) (1+i)n-1›› where A= periodic payment› P= principal or loan amount› i= interest rate per period› (program calculates yearly› interest rate)› n= number of periods› (program calculates number of› years)›› In addition it will calculate a loan› balance at any point in time desired.› If an amortization schedule is needed› it will print one to either the screen› or printer. (printer control codes are› for the Gemini 10X; REM statements› are included in the program to help› those of you with other non-compatible› printers)›› In order to allow the complete› flexibility desired, a full screen› display is used. This is similar in› some respects to the old APX program› "Home Loan Analysis. In fact, it was a› photograph in the APX catalog that› inspired the writing of this current› program, [LOAN PLUS] This display› gives the user complete knowledge of› which inputs are or can be used. It› also permits repeated changes of one› variable or another. Comparisons or› fine tuning can thus be easily made.› At any time a printout of the screen› contents can be obtained (see sample› below).›› ------------LOAN ANALYSIS------------›› Purchase Price ---:$ 95900› Down Payment ---:$ 20000› Balloon Payment ---:$ 15000› Loan Amount ---:$ * 60900› Interest %---: 13› Loan Length YRS---: 30› Loan Payment ---:$ * 674› Total Loan Cost ---:$ * 242523› Total Interest ---:$ * 181623› Loan Start YR---: 1983› MTH---: 1› Amortized YR---: 1990› MTH---: 1› Loan Balance ---:$ * 58973›› -------------------------------------›› The one screen of instructions which› appears at the beginning of the› program is probably only useful the› first time or two. However, the 20› second wait before the program› continues is primarily for› initialization, player setup, etc. I› felt this was better than looking at a› blank screen.›› All instructions to use the program› are shown at the bottom of the input› screen. The horizontal blue cursor› (player) can be moved up or down with› the OPTION or SELECT keys. Any item› which you want solved should be input› with an "*". 'Purchase Price', 'Total› Loan Cost', and 'Total Interest' will› automatically have an "*" input if› other proper values have already been› made. All inputs, including the "*",› are entered as data only after the› RETURN key has been pressed. When you› want a calculation, push the START› key. If you want to cancel an earlier› input, position the cursor over the› input, Then press the space bar and› RETURN key. A previous input can be› changed by simply placing the cursor› and entering the new value. To clear› all numbers from the screen press "C"› when that instruction appears at the› bottom of the screen.›› It is not necessary to enter inputs› for all lines as shown in the example.› Only those needed for a particular› calculation are required. for› instance, in it's simplest form, you› could enter 95900 for 'Purchase Price'› and an "*" for 'Loan Amount'. Press› START and the correct amount of 95900› will appear in the calculation column› for 'loan Amount'.›› Input length is limited to 7 character› or maximum. Entering› additional numbers will automatically› invoke a RETURN and the first 7› characters will become the valid› input. Since using a number this large› will result in some calculations of at› least 8 characters, that is the limit› in the calculation column.›› When using the printer or printing an› amortization schedule to the screen,› additional prompts will appear at the› bottom of the screen. Make sure the› printer is initially at the 'top of› page'. Schedules will then page› properly and screen printouts will› allow 3 per page.›› One strong concern was to have a› professionally looking printed or› display format. All inputs and› calculated values are converted to a› right justified format on the main› display screen. This is accomplished› using a string of INSERTS dependent on› the LENgth of each value. In addition,› all calculations for the amortization› schedules are decimal aligned, and› include trailing zeros.›› Since the screen amortization schedule› only shows 12 months at a time, yearly› interest and principal totals are› shown as well as running totals to› that date. A hardcopy print of any› year can also be produced by following› the prompts.›› Because all potential input lines are› shown on the screen at the same time,› I felt it was important to include› numerous error messages. These will› serve as a guide through the initial› uses of the program. (They also act as› a check for those who understand, but› are not currently thinking). These› error messages will appear at the› bottom of the screen and will› automatically return you to the 'input› mode' after an adequate amount of› chastizing.›› SOME CAUTION:› If 'Loan Length' is to be calculated› it may result in a decimal which› cannot be equated to exact months. In› such cases it is best to massage the› variables to produce an even 'Loan› Length' before asking for an› amortization schedule.›› When calculating the 'Interest Rate',› the program may require many› reiterations to zero-in on the correct› answer. Please be patient.›› Pressing CTRL-1 will stop the program› and it will not accept any additional› input until it is pressed again. This› is not an enhancement to the program› but rather a hinderance I was unable› to eliminate.›› Credit for the machine language player› movement routine must go to Tom Sak› and Sid Meier. Their article "P/M› Graphics Made Easy" appeared in› COMPUTE'S FIRST BOOK OF ATARI› GRAPHICS. It uses the vertical blank› interrupt to determine player moves.› This is accomplished by simply POKEing› the new coordinates rather than a USR› call.›› This program will run under both ATARI› Basic or BASIC XL. Under the latter,› invoking the FAST command will speed› things up. It has not been thoroughly› tested on the 1200/600/800XL.›› Considerable time has been spent› resolving the numerous 'bugs' which› have cropped up (more then had been› imagined). Hopefully, all have been› eliminated, though not likely. If any› are found, I would appreciate hearing› about them. Any questions will gladly› be answered. They can be addressed to› Gary B. Tyler,› 1525 NW 116th Ave.,› Portland, Oregon 97229.› ** END **›