{"id":29696,"date":"2020-12-29T20:26:22","date_gmt":"2020-12-29T19:26:22","guid":{"rendered":"https:\/\/hooxies.nl\/?page_id=29696"},"modified":"2026-11-25T21:07:44","modified_gmt":"2026-11-25T20:07:44","slug":"loansave","status":"publish","type":"page","link":"https:\/\/hooxies.nl\/?page_id=29696","title":{"rendered":"LOAN+SAVE"},"content":{"rendered":"<p><b>Display<\/b><br \/>\n<a rel=\"hp-41cx_loan+save\" href=\"https:\/\/hooxies.nl\/wp-content\/uploads\/2020\/12\/loansave-hp41cx.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/hooxies.nl\/wp-content\/uploads\/2020\/12\/loansave-hp41cx.png\" alt=\"\" width=\"226\" height=\"104\"\/><\/a> <a rel=\"hp-41cx_loan+save\" href=\"https:\/\/hooxies.nl\/wp-content\/uploads\/2023\/02\/loansave-dm41x.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/hooxies.nl\/wp-content\/uploads\/2023\/02\/loansave-dm41x.png\" alt=\"\"  width=\"174\" height=\"104\" \/><\/a> <br \/>\n<em>(HP-41CX, Hewlett Packard 1983 and DM41X, <a href=\"https:\/\/www.swissmicros.com\/\" rel=\"noopener noreferrer\" target=\"_blank\">SwissMicros<\/a> 2020)<\/em><br \/>\n&nbsp;<\/p>\n<p><b>Overview<\/b><br \/>\nProgram <tt>L\/S<\/tt> (with subprograms <tt>LOAN<\/tt> and <tt>SAVE<\/tt>) calculates monthly payments or savings based on an amount, an interest value and a period. The loan and savings program was written to review different ways of managing the mortgage and savings. Most banks can provide a nice listing but what if the interest changes? Below program may be of help. A feeling of nostalgia will be experienced when calculating a mortgage over a period of 30 years. The calculation loop has to be performed 360 times. The cursor has to move 30 times over the display which is shown by a year-counter.<br \/>\n&nbsp;<\/p>\n<p><b>Calculations<\/b><br \/>\nThe loan on the basis of annuity is calculated by below algorithm in which <b>AMT<\/b> and <b>MP<\/b> represent the amount respectively monthly payment and <b>r<\/b> is the monthly interest and <b>m<\/b> the number of months:<\/p>\n<table style=\"border-top: 0px; border-left: 0px; border-right: 0px; border-bottom: 0px;\">\n<tr style=\"border-top: 0px; border-left: 0px; border-right: 0px; border-bottom: 0px;\">\n<td style=\"border-top: 0px; border-left: 0px; border-right: 0px; border-bottom: 0px;\" rowspan=\"2\" valign=\"center\">&nbsp;MP&nbsp;<\/td>\n<td style=\"border-top: 0px; border-left: 0px; border-right: 0px; border-bottom: 0px;\" rowspan=\"2\" valign=\"center\">&nbsp;=&nbsp;&nbsp;AMT&nbsp;&#8901;<\/td>\n<td style=\"padding: 0px; border-top: 0px; border-left: 0px; border-right: 0px; border-bottom: solid 1px; \" align=\"middle\">r<sup>m<\/sup><\/td>\n<td style=\"border-top: 0px; border-left: 0px; border-right: 0px; border-bottom: 0px;\" rowspan=\"2\" valign=\"center\">&nbsp;=&nbsp;&nbsp;AMT&nbsp;&#8901;<\/td>\n<td style=\"padding: 0px; border-top: 0px; border-left: 0px; border-right: 0px; border-bottom: solid 1px; \" align=\"middle\">r<sup>m<\/sup><\/td>\n<\/tr>\n<tr style=\"border-top: 0px; border-left: 0px; border-right: 0px; border-bottom: 0px;\">\n<td style=\"border-top: 0px; border-left: 0px; border-right: 0px; border-bottom: 0px;\" align=\"middle\">&nbsp;r<sup>m-1<\/sup> + r<sup>m-2<\/sup> + .. + r + 1&nbsp;<\/td>\n<td style=\"border-top: 0px; border-left: 0px; border-right: 0px; border-bottom: 0px;\" align=\"middle\">&nbsp;r&#8901;(r&#8901;(r&#8901;(&#8230;.) + 1) + 1) + 1&nbsp;<\/td>\n<\/tr>\n<\/table>\n<p>\nSavings calculation is based on below algorithm in which <b>SUM<\/b> and <b>MP<\/b> represent the lump sum respectively monthly payment:\n<\/p>\n<table style=\"border-top: 0px; border-left: 0px; border-right: 0px; border-bottom: 0px;\">\n<tr>\n<td style=\"border-top: 0px; border-left: 0px; border-right: 0px; border-bottom: 0px;\" align=\"middle\" width=\"10\">&nbsp;SUM&nbsp;<\/td>\n<td style=\"border-top: 0px; border-left: 0px; border-right: 0px; border-bottom: 0px;\" align=\"middle\">&nbsp;=&nbsp;<\/td>\n<td style=\"border-top: 0px; border-left: 0px; border-right: 0px; border-bottom: 0px;\" align=\"middle\">&nbsp;r&#8901;(r&#8901;(r&#8901;(r&#8901;(&#8230;) + MP) + MP) + MP&nbsp;<\/td>\n<\/tr>\n<\/table>\n<p>\n<br \/>\nr expresses the monthly interest derived from the annual interest <b>I<\/b> (in %) as follows:<\/p>\n<table style=\"border-top: 0px; border-left: 0px; border-right: 0px; border-bottom: 0px;\">\n<tr>\n<td style=\"border-top: 0px; border-left: 0px; border-right: 0px; border-bottom: 0px;\"  rowspan=\"2\" valign=\"center\">&nbsp;r<\/td>\n<td style=\"border-top: 0px; border-left: 0px; border-right: 0px; border-bottom: 0px;\"  rowspan=\"2\" valign=\"center\">=&nbsp;1&nbsp;+<\/td>\n<td style=\"padding: 0px; border-top: 0px; border-left: 0px; border-right: 0px; border-bottom: solid 1px; \"  align=\"middle\">I%<\/td>\n<\/tr>\n<tr>\n<td style=\"border-top: 0px; border-left: 0px; border-right: 0px; border-bottom: 0px;\" align=\"middle\">12*100&nbsp;<\/td>\n<\/tr>\n<\/table>\n<p>\n&nbsp;<\/p>\n<p><b>Example 1: LOAN<\/b><br \/>\n<a rel=\"hp-41cx_loan+save\" href=\"https:\/\/hooxies.nl\/wp-content\/uploads\/2020\/12\/loansave-example1.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/hooxies.nl\/wp-content\/uploads\/2020\/12\/loansave-example1-413x260.png\" alt=\"\" width=\"413\" height=\"260\" \/><\/a><br \/>\n&nbsp;<\/p>\n<p><b>Example 2: SAVE<\/b><br \/>\n<a rel=\"hp-41cx_loan+save\" href=\"https:\/\/hooxies.nl\/wp-content\/uploads\/2020\/12\/loansave-example2.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/hooxies.nl\/wp-content\/uploads\/2020\/12\/loansave-example2-413x249.png\" alt=\"\" width=\"413\" height=\"249\" \/><\/a><br \/>\n&nbsp;<\/p>\n<p><b>Program Listing<\/b><br \/>\nThe LOAN program\u2019s outcome will be the Monthly Payment for the loan (mortgage) on the basis of annuity and requires the following parameters:<br \/>\n&#8211; the Amount to borrow in your own currency<br \/>\n&#8211; the effective Annual Interest<br \/>\n&#8211; the Number of Months to pay it back<\/p>\n<p>The SAVE program calculates the final Lump Sum you receive after the period of saving and requires the following parameters:<br \/>\n&#8211; the Monthly Payment in your own currency<br \/>\n&#8211; the effective Annual Interest<br \/>\n&#8211; the Number of Months to save your money<\/p>\n<p>The listing below shows an extended command in line 08: ATOX. This is to check whether the input character was an &#8216;L&#8217; (value 76). For the C and CV this can be replaced by changing it an ASTO X followed by &#8216;L&#8217;. The same applies to line 11 where the compare character is an &#8216;S&#8217; (value 83).<br \/>\nThe number of bytes can easily be reduced by removing subroutine LBL 06 and its calls XEQ 06 or by deleting lines 01-13.<br \/>\nThe listing of program L\/S (with subprograms LOAN and SAVE) is given below:<\/p>\n<p><a rel=\"hp-41cx_loan+save\" href=\"https:\/\/hooxies.nl\/wp-content\/uploads\/2020\/12\/loansave-program.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/hooxies.nl\/wp-content\/uploads\/2020\/12\/loansave-program-413x249.png\" alt=\"\" width=\"413\" height=\"249\" \/><\/a><br \/>\n&nbsp;<\/p>\n<p><b>Registers, Labels and Flags<\/b><br \/>\n<a rel=\"hp-41cx_loan+save\" href=\"https:\/\/hooxies.nl\/wp-content\/uploads\/2020\/12\/loansave-registers.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/hooxies.nl\/wp-content\/uploads\/2020\/12\/loansave-registers-413x150.png\" alt=\"\" width=\"413\" height=\"150\" \/><\/a><br \/>\n&nbsp;<\/p>\n<p><b>Downloads<\/b><br \/>\nPDF format of program <a rel=\"hp-41cx_loan+save\" href=\"https:\/\/hooxies.nl\/wp-content\/uploads\/2023\/02\/loansave.pdf\">LOAN+SAVE<\/a>.<br \/>\nRAW\/TXT format of program <a href=\"https:\/\/hooxies.nl\/wp-content\/uploads\/2020\/12\/loansave.zip\">LOAN+SAVE<\/a> (in zip file).<br \/>\n&nbsp;<\/p>\n<div style=\"font-size: 12px;\">This program is copyright and is supplied without representation or warranty of any kind. The author assumes no responsibility and shall have no liability, consequential or otherwise, of any kind arising from the use of this program material or any part thereof<\/div>\n<p><i>&copy; 2006-2020 by Auke Hoekstra<\/i><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Display (HP-41CX, Hewlett Packard 1983 and DM41X, SwissMicros 2020) &nbsp; Overview Program L\/S (with subprograms LOAN and SAVE) calculates monthly payments or savings based on an amount, an interest value and a period. The loan and savings program was written to review different ways of managing the mortgage and savings. Most banks can provide a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":2,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_oct_exclude_from_cache":false,"footnotes":""},"class_list":["post-29696","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/hooxies.nl\/index.php?rest_route=\/wp\/v2\/pages\/29696","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hooxies.nl\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/hooxies.nl\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/hooxies.nl\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hooxies.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=29696"}],"version-history":[{"count":1,"href":"https:\/\/hooxies.nl\/index.php?rest_route=\/wp\/v2\/pages\/29696\/revisions"}],"predecessor-version":[{"id":57399,"href":"https:\/\/hooxies.nl\/index.php?rest_route=\/wp\/v2\/pages\/29696\/revisions\/57399"}],"up":[{"embeddable":true,"href":"https:\/\/hooxies.nl\/index.php?rest_route=\/wp\/v2\/pages\/2"}],"wp:attachment":[{"href":"https:\/\/hooxies.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=29696"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}