Skip to content

v3.6.0

Choose a tag to compare

@ryanduguid ryanduguid released this 14 Nov 01:25
· 404 commits to main since this release
Immutable release. Only release title and notes can be modified.
v3.6.0
50eeb90

v3.6.0, 14 November 2026, variance, financial-year periods, level payments and an attribution licence

Cut on 14 November 2026 from the changes on main since v3.5.0. v3.5.0 still behaves as
it did, including the defects fixed here. The defects that remain are listed under
Known issues.

Licence: v3.6.0 is the first release under the
Ryan Duguid Public Attribution Licence 1.0; v3.5.0 stays under Apache-2.0,
and v3.4.2 and earlier releases under MIT. See Changed below.

Added

Variance and financial-year periods

Five functions take the library from 143 to 148.

  • oz.Varianceλ(Actual, Budget, [Type]) returns actual less budget, multiplied by
    Type: 1 for income, where an actual above budget is favourable, and -1 for an
    expense recorded as a positive cost. A favourable variance is positive on every
    line; a ledger that stores expenses as negative balances needs both amounts negated
    first. Actual and Budget must be the same shape and hold numbers or blank cells,
    which count as 0. Type may be one value, one for each row, or one for each cell; a
    single blank Type means income. Text or logical amounts, other shapes, and a blank,
    text, TRUE or other value inside a column of Types return a message rather than a
    number; an error in an amount shows.
  • oz.VariancePctλ(Actual, Budget, [Type]) divides that variance by the budget's
    absolute value, so the percentage keeps the variance's sign when the budget is
    negative, as a work in progress movement or a loss can be. Its inputs follow the
    same rules. A zero budget returns #DIV/0!.
  • oz.YearToDateλ(Values, Dates, AsAt, [StartMonth]) totals each row of Values over
    the columns dated from the first day of AsAt's financial year to AsAt, ignoring any
    time of day. A part period counts in full. Dates must be one numeric row matching
    Values' columns, AsAt one date and Values numbers or blank cells; otherwise it
    returns a message, and an error in any column shows. A financial year that would
    start before 1 January 1900 returns #NUM!.
  • oz.FinancialMonthλ(Dates, [StartMonth]) and oz.FinancialQuarterλ(Dates, [StartMonth]) number a date's month (1 to 12) and quarter (1 to 4) within its
    financial year, July being month 1 by default. A StartMonth that is not one whole
    number from 1 to 12, including a range of them, returns a message, as it does in
    oz.YearToDateλ.

They reach the workbook through ozzit variance_fy_periods, which writes
src/Dates.txt, src/Financial.txt, their About tables, the defined names and
functions.csv at once, as the earlier function passes did. The cover label moves to
148 functions.

Level payment and average-balance corkscrew

Two functions take the library from 148 to 150. The derivations
are written out with the checks behind them.

  • oz.LevelPaymentλ(Principal, Rates, [Balloon]) returns the level payment at the end
    of each period that leaves Balloon, 0 by default, after the last payment, where each
    period has its own rate. Pass oz.DayCountRateλ() as Rates to repay a loan under
    actual day counts, which until now fed only the sculpting functions. With one rate in
    every period it equals -PMT(rate, periods, Principal, -Balloon). Principal and
    Balloon must be single numbers and Rates one row of numbers above -1; anything else
    returns a message.
  • oz.CorkscrewRateλ(Opening, Rates, Flow1, [Flow2], [Flow3], [Flow4]) is a corkscrew
    whose interest is its rate times the average of the period's opening and closing
    balances, added to the closing balance. Each period is solved in closed form, so the
    circular reference a worksheet would need is gone. Rates is one rate for every period
    or one for each; a rate must be a number above -1 and below 2, Opening a single number
    and every flow a number or blank, or the result is a message. A flow typed as text
    would otherwise show in the flows row but be left out of the closing balance.

They reach the workbook through ozzit level_payment_corkscrew_rate, under a new LOANS
heading in the Financial About table. The cover label moves to 150 functions.

Install routes and a function reference

  • The repository is a Claude Code plugin marketplace whose ozzit plugin installs
    the Ozzit skill:
    claude plugin marketplace add ryanduguid/Ozzit, then
    claude plugin install ozzit@ozzit. The marketplace follows main, so supply the
    approved bundle revision. Its manifests pass claude plugin validate; installing it
    from GitHub has not been tested.
  • The README gives 3 more routes, none tested end to end: upload the zipped
    skills/ozzit folder as a Skill for Claude for Excel, give SKILL.md to Copilot in
    Excel's skill builder, or import oz.txt as one module from its URL at the v3.5.0
    tag in the Advanced Formula Environment (see Known issues). A table
    on its first screen states that only Windows desktop Excel has been tested.
  • ozzit function_reference <src dir> <functions.csv> <output.json> writes each
    function's own help, its signature, description, parameters, notes and worked
    examples, as one JSON file joined to functions.csv, so a website or an agent can
    document every function from the source. It fails when a name is missing from either
    side, listed twice or filed under another module, or when a help signature differs
    from the index other than in spacing.

Changed

  • Relicensed from Apache-2.0 to the Ryan Duguid Public Attribution Licence,
    Version 1.0: FSL-1.1-ALv2 (Functional Source License, with Apache-2.0 as the
    future licence) plus a public attribution condition. Released versions keep
    their licence.
  • oz.DSIλ(AverageInventory, CostOfGoodsSold, [Days]) takes the days the cost of goods
    sold covers, 365 when omitted or blank, as oz.ReceivableDaysλ and oz.PayableDaysλ
    already did. It used to fix 365, so a leap year or a quarter needed the cost of goods
    sold scaled first. Days of 0 or less returns #NUM!, and Days that is not a number,
    numeric text included, returns #VALUE!. Existing two-argument calls give the same
    result.
  • Every function help table now has a WEBPAGE and a VERSION row. 17 had no VERSION, 4 had
    no link, and 10 labelled the link WEBSITE. A copied function carries only its own
    help, so this is where a reader sees which version it came from. Added VERSION rows
    read 24 October 2026, the date the row was added.
    tools/ozzit/tests/repository/help_fields.rs now fails when a help table lacks
    either row.

Fixed

  • oz.Cumulativeλ given a block of several rows and columns ran its total through
    the block row by row, so each row opened on the previous row's closing total. It now
    returns a message. A row or a column behaves as before.
  • oz.RollingSumλ, oz.RollingAvgλ, oz.RollingMaxλ and oz.RollingMinλ window
    over the columns of one row. A column came back as one figure for the whole column,
    and a block as its rows added together. Both now return a message, which suggests
    TRANSPOSE for a column.
  • oz.Depreciateλ read a SalvageValues entry that is text, such as TBA, or an error
    as 0, so the asset depreciated to nil without warning, and read date text such as
    1/1/2026 as a date serial. Any text or error now returns a message, as numeric text
    already does in oz.Varianceλ; passing the error through would have made the whole
    schedule one #VALUE!. A blank cell is still 0. Numeric text such as "100", which
    was read as the number, is now refused too.
  • oz.SumPeriodsλ help now states what the function already did: a date before the
    first period start is left out of every period, and a date on or after the last
    start goes to the last period. The arithmetic is unchanged.
  • oz.CorkScrewReversalλ multiplied the balance by its flag, so a ReversalFlags value
    of 2 reversed the opening balance twice over and the period closed on minus it, and
    TRUE or a 1 typed as text passed as 1. Any flag other than 1, 0 or blank now returns
    a message. Rows of ones and blanks or zeros give the same result as before.
  • oz.Corkscrewλ totalled each period with SUM, which leaves text and TRUE out, so a
    flow typed as text, such as "100", showed in the flows row but never reached the
    closing balance. Opening was not checked: TRUE or "100" passed as a number, and a
    range of several cells returned an error. A flow that is text, TRUE or FALSE, and an
    Opening that is not a single number or blank cell, now return a message, as
    oz.CorkscrewRateλ does. Numbers, blank cells and empty text in a flow give the
    same result as before; an Opening of empty text now counts as nil instead of
    returning #VALUE!, and an error still shows.
  • oz.Depreciateλ help now says that its Revenue from Sale row is the salvage value,
    shown in the disposal period, not sale proceeds, and that DV and PC make it 0. The
    arithmetic is unchanged.
  • oz.Depreciateλ and oz.CorkScrewReversalλ help had no worked example, though
    every other function's help has one. Both now end with one, which the native
    self-test checks. To stay under Excel's 8,192-character limit for a defined name
    and fit above the settings on its worksheet, oz.Depreciateλ help puts its method
    codes on 3 rows and each LifeInYears and Timeline note on one row, with the same
    meaning. The arithmetic is unchanged. A test now fails when a demonstration sheet's
    help has no room to spill; ozzit verify_help_spills skipped such a cell.
  • The Debt module's 5 functions, oz.AmortiseBλ, oz.DebtSculptFixedλ,
    oz.DebtSculptVariableλ, oz.DebtSculptVariableLRVλ and oz.InterestLRVλ, were
    in no About table. oz.AboutFinancialλ now lists them under DEBT MODULE, and a test
    fails when a function is missing from every About table.
  • 100 function help tables gave the repository's front page as their WEBPAGE. 81 now
    link the page that explains the function: its own document, the Australian
    modelling, comparison or workbook-use page, or the function guide's worksheet
    catalogue, which also describes the Utilities copies and each Debt function. The
    other 19 have no page of their own and keep the front page. oz.Depreciateλ
    NOTES said to see the webpage for how the methods differ from Excel's; it now says
    that DB and DDB differ in the final year and points to their help. A test fails
    when a WEBPAGE inside the repository names no file on main.
  • 29 functions' formulas changed after the date their VERSION row gave, so a copied
    function could not be told from an older copy: oz.Amortiseλ gained
    FinalPeriodEnd on 29 September 2026 and still read 20 Aug 2026. Each VERSION now
    gives the date of the last commit that changed its formula, from the Git history
    of src/. tools/ozzit/tests/repository/help_fields.rs now fails when a formula
    differs from its base (a pull request's base, or for a push to main the commit
    main held before it) and its VERSION is neither later nor within a day of
    today. Comments, spacing outside literals and the help block are not the formula,
    so a help-only edit keeps its VERSION; any other text, such as a message and its
    spacing, is.
  • The practice companion's Benefit totals sheet prefills the 47% FBT rate and the
    2.0802 and 1.8868 gross-up factors under a note that called them illustrative and
    named no period. The note now names the FBT years they apply to, ending 31 March 2023
    to 31 March 2027, as the ATO publishes them. The values are unchanged.

The native self-test gains range-input and shape checks. Each date function is given
worksheet ranges and must match the same dates passed as calculated arrays, because
EDATE and EOMONTH reject a multi-cell range they accept once calculated. The changed
functions are tested on rows, columns and blocks.

tools/excel_eval_formulas.ps1 now waits for Excel to finish calculating and records a
result only once 2 reads in a row match exactly, failing after 10 reads: one cross-check
run had recorded a blank for a formula that returns text. It also registers a COM
message filter, so a call that a busy Excel rejects is retried for up to 60 seconds,
and reads HasFormula and HasSpill again until they come back true or false.
Rejected calls had failed 4 of 6 runs on an unchanged workbook: 2 threw
RPC_E_CALL_REJECTED and 2 read HasFormula as blank for a formula cell.

tools/dump_values.ps1 now registers the same filter and reads each sheet's position,
shape and values from one range, again until they agree, and fails if they never do.
ozzit verify_cache had failed
1 of 3 runs on an unchanged workbook with an invalid cell position, on the line that
holds the first cell of a sheet, where a blank read would write a position of 0.

Known issues

  • oz.CorkScrewReversalλ still totals each period's flows with SUM, as oz.Corkscrewλ
    did before the fix above, so a flow typed as text, such as "100", or TRUE shows in the
    flows row but is left out of the closing balance. Opening is not checked either.
    Enter every flow as a number or leave the cell blank.
  • oz.CorkscrewλDV, which checks oz.Corkscrewλ's arguments, refuses a blank Opening,
    blank flow cells and empty text in a flow, all of which oz.Corkscrewλ accepts as
    nil. Its message that Opening or a flow must contain only numeric values can therefore
    flag a corkscrew that calculates correctly.
  • oz.txt ends 4 comment lines with a tab, in oz.IntOnIntλ and oz.IRRλ. Microsoft's
    module import page says the Advanced Formula Environment allows no tab characters in a
    module and imports only from a GitHub gist URL. Importing oz.txt has not been tested;
    the workbook is unaffected.

VirusTotal