The calendar table is built with stack groups and uses si(mindex) to count the cells and draw days based on their position in the table.
The table consists of a vertical stack group containing 6 horizontal stack groups, each with 7 text items. Each text item has its text linked to a formula:
$df(d,
dp(1d0h0m0s
r + df(e, dp(1d0h0m0s r1d)) + d
a + (si(mindex,0)+si(mindex,1)*si(mcount,0)) + d
)
)$
The row with names is not a part of the calendar table, so that it doesn’t mess up the indexing.
It consists of a horizontal stack group with 7 text items, each with the text linked to a formula:
$df(E,
r + df(e, r+(si(mindex,0)+1)+d ) + d
)$
or
$df(E,
dp(1d0h0m0s
r + df(e, dp(1d0h0m0s r1d)) + d
a + si(mindex,0) + d
)
)$