Divooka Reference

Office Tables

6 nodes

On this page 6

Amortization Schedule

Function

A loan's repayment schedule, year by year: what is paid, how much of it is interest, how much repays the loan, and what is still owed.

Signature
AmortizationSchedule -> Object[,]
    principal: Number
    annualRate: Number
    years: Number
object[,] AmortizationSchedule(
    double principal,
    double annualRate,
    double years)

Parameters

nametypedefaultdescription
principalNumber—How much is borrowed.
annualRateNumber—The yearly interest rate, as a fraction: 0.05 for 5%.
yearsNumber—How many years it is repaid over, in equal monthly payments.

Returns

resultObject[,]
Ships with
Divooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Office Tables
Package
Methodox Office

Columns

Function

A table from up to four columns of equal or unequal length, under a header row.

Signature
Columns -> Object[,]
    headers: Text
    column1: Array
    column2: Array
    column3: Array
    column4: Array
object[,] Columns(
    string headers,
    Array column1,
    Array column2,
    Array column3,
    Array column4)

Parameters

nametypedefaultdescription
headersText—The column headings, separated by commas; none when empty.
column1Array—The first column's values.
column2Array—The second column's values, or nothing.
column3Array—The third column's values, or nothing.
column4Array—The fourth column's values, or nothing.

Returns

resultObject[,]
Ships with
Divooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Office Tables
Package
Methodox Office

Format Times

Function

Each date or time in a list, such as a web service's 2026-10-28T21:00, written as text in a format: HH:mm for the hour, ddd for the day's short name, d MMM for the date.

Signature
FormatTimes(values: Array, format: Text) -> Text Array
string[] FormatTimes(Array values, string format = "HH:mm")

Parameters

nametypedefaultdescription
valuesArray—Dates and times as ISO 8601 text, or as seconds since 1970 (a Unix time).
formatTextHH:mmA .NET date and time format.

Returns

resultText Array
Ships with
Divooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Office Tables
Package
Methodox Office

Number Column

Function

One column of a table as numbers, skipping a header row that is text.

Signature
NumberColumn(table: Object[,], column: Number) -> Number Array
double[] NumberColumn(object[,] table, double column)

Parameters

nametypedefaultdescription
tableObject[,]—The table: a range a Function was given, or one another node made.
columnNumber—The column, counting from 1.

Returns

resultNumber Array
Ships with
Divooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Office Tables
Package
Methodox Office

Row Count

Function

How many rows a table has, its header included.

Signature
RowCount(table: Object[,]) -> Number
double RowCount(object[,] table)

Parameters

nametypedefaultdescription
tableObject[,]—The table.

Returns

resultNumber
Ships with
Divooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Office Tables
Package
Methodox Office

Sequence

Function

A column of numbers: Count of them from Start, Step apart.

Signature
Sequence -> Number Array
    start: Number
    count: Number
    step: Number
double[] Sequence(double start, double count, double step = 1)

Parameters

nametypedefaultdescription
startNumber—The first number.
countNumber—How many.
stepNumber1The difference between neighbours.

Returns

resultNumber Array
Ships with
Divooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Office Tables
Package
Methodox Office