--- title: "Calculate A Sinking Fund" id: 79529 type: "computer_media" slug: "calculate-a-sinking-fund" url: "http://localhost/computer_media/calculate-a-sinking-fund/" markdown_url: "http://localhost/computer_media/calculate-a-sinking-fund.md" published_at: "2026-11-22T19:36:03+00:00" modified_at: "2026-11-22T19:43:20+00:00" featured_image: url: "http://localhost/wp-content/uploads/2026/11/calculate-a-sinking-fund-1.png" excerpt: "Works out monthly deposits and the last payment for a sinking fund." post_tag: - name: "Downloadable" slug: "downloadable" taxonomy: "post_tag" url: "http://localhost/tag/downloadable/" - name: "TS 2068" slug: "ts2068" taxonomy: "post_tag" url: "http://localhost/tag/ts2068/" model: - name: "Timex/Sinclair 2068" slug: "ts-2068" taxonomy: "model" url: "http://localhost/model/ts-2068/" indiv: - name: "Dick Wagner" slug: "dick-wagner" taxonomy: "indiv" url: "http://localhost/indiv/dick-wagner/" genre: - name: "Finance" slug: "finance" taxonomy: "genre" url: "http://localhost/type/finance/" media_type: "Program" programmers: - name: "Dick Wagner" slug: "dick-wagner" taxonomy: "indiv" url: "http://localhost/indiv/dick-wagner/" download_url: "https://archive.org/download/timex-sinclair-software-archive/Calculate%20A%20Sinking%20Fund%20%281989%29%28Wagner%2C%20Dick%29%28TS2068%29%28Program%29.zip" tsrun_member: "Calculate A Sinking Fund (1989)(Wagner, Dick)(TS2068)(Program)/Calculate A Sinking Fund (1989)(Wagner, Dick)(TS2068)(Program).tap" mediadate: "1989" images: - url: "http://localhost/wp-content/uploads/2026/11/calculate-a-sinking-fund-1.png" - url: "http://localhost/wp-content/uploads/2026/11/calculate-a-sinking-fund-2.png" - url: "http://localhost/wp-content/uploads/2026/11/calculate-a-sinking-fund-3.png" article_media: - id: 43699 title: "Calculate A Sinking Fund" type: "article" url: "http://localhost/article/calculating-a-sinking-fund/" media_type_tags: "Finance" license: false --- # Calculate A Sinking Fund Works out the monthly deposit needed to reach a chosen amount at a given yearly interest rate and number of months. It can then take a deposit rounded up to the cent and give the smaller last payment. RUN it. Answer F to stop or C to enter the rounded deposit. The rate must be more than 0. Four lines were corrected so that they run: a closing quote in 110, a bracket in 115, the quotes inside the question in 150, and a stray period after the quote in 240. Borrowed from CCAT/S. Published in LISTing March 1989 ([Calculate A Sinking Fund](https://timexsinclair.com/article/calculating-a-sinking-fund/)). ## Source Code ``` 100 INPUT "How much do you need to accumulate? $";AMT 110 INPUT "What is the annual interest rate in %";R;" of the investment or savings account?" 115 LET r=(R/(12*100)) 120 INPUT "How many months for the investment to run to meet your need? ";n 130 LET S=AMT*(r/((1+r)^n-1)) 140 PRINT "You will need to deposit $";S;" monthly for ";n;" months to produce $";AMT 150 INPUT "If the amount does accumulate to exactly cents then ENTER ""F"". If not then ENTER ""C""";x$ 160 IF x$="F" THEN STOP: IF x$="C" THEN GOTO 170 170 INPUT "If your deposits are not exactly the amount to the last cent, use the next higher cent and INPUT the new amount $";t 200 REM change equation to 205 REM A=t*(((1+r)^n)/r) 210 REM recalculate the last payment 220 LET A=t*(((1+r)^(n-1)-1)/r) 225 REM last payment LP=Amount AMT-(A*(1+r)) 230 LET LP=AMT-(A*(1+r)) 240 PRINT "You will be making payments of $";t;" for ";(n-1);" months, and a last payment of $";LP;" to produce $";AMT;" in interest" ```