Skip to content

Modern Finance AmortizationSchedule

Paul Squires edited this page Oct 19, 2026 · 4 revisions

Home › Finance › Finance › AmortizationSchedule

AmortizationSchedule

Holds a loan schedule's terms and gives its scheduled payment count and payment.

Syntax

s.GetIterator( )  s.Count( )  s.Payment( )

Examples

#import "std/money"
using money

'' Holds the terms, not the rows.  Count( ) is the SCHEDULED number of
'' payments; extra payments can end the loan sooner, and LoanSummarize
'' reports what was actually posted.
dim as LoanTerms t = LoanTermsUsMortgage( DecimalParse( "400000" ).Value( ), _
                                          DecimalParse( "0.0595" ).Value( ), 30 )

var sched = LoanSchedule( t )

print sched.Value( ).Count( )            '' 360
print sched.Value( ).Payment( ).ToStringFixed( 2 )       '' 2385.36

'' Two independent walks give the same rows -- there is no consumed
'' state to exhaust.
var a = sched.Value( ).GetIterator( )
var b = sched.Value( ).GetIterator( )
print a.Value( ).Period_                 '' 1
print b.Value( ).Period_                 '' 1

Library: Finance
Category: Finance
Documented under: Nothing Becomes A Keyword
Source: pkg/std/money/finloan.tiko in the tiko repository.

Clone this wiki locally