ZeraBooks open data

Month-end adjusting entries

A CSV schedule and a script that drafts each month's depreciation, prepaid spreads and loan interest with the calculation in the memo, so a reviewer can check every entry. Includes a log for the questions only the client can answer.

Repository: github.com/ZeraBooks/month-end-adjusting-entries
Download: latest release (v1.0.0)
Guide: ZeraBooks for accountants on zerabooks.com explains the method with a worked example.
License: see the repository. Cite: ZeraBooks, “Month-end adjusting entries”, https://zerabooks.github.io/data/month-end-adjusting-entries/

In ZeraBooks

ZeraBooks Autopilot drafting month-end entries for approval
Month-end entries drafted by ZeraBooks Autopilot and held for approval.

README

Month-end adjusting entries

The month-end entries an accountant drafts for every client are the ones a bank statement can't show: depreciation, prepaid costs spread over the months they cover, and the interest part of a loan payment. Drafted from a schedule with the calculation in the memo, each one can be reviewed without opening a separate workpaper.

Files

File What it is
schedule.csv One row per recurring entry: fixed assets to depreciate, prepaid costs to spread and loans to split. Fictional sample rows.
draft_entries.py Reads the schedule and drafts the entries for one month, with the math in each memo. Checks that debits equal credits. Python 3, standard library only.
sample-output-2026-10.csv What the script drafts for October 2026 from the sample schedule: five entries, 1,395.00 each side.
client-questions-log.csv A log for the questions only the client can answer (personal or business, what a transfer was for), with the answer and where it was booked.

How to use it

  1. Replace the sample rows in schedule.csv with the client's own:

    • depreciation: cost in Amount, salvage value, useful life in Months and the first month in Start (YYYY-MM).
    • prepaid: the amount paid, the months it covers and the first month.
    • loan_interest: the balance at the start of the month from the loan statement and the annual rate. Update the balance each month.
  2. Draft the month:

    python3 draft_entries.py schedule.csv 2026-10 entries-2026-10.csv
    
  3. Review each entry against its memo, then post it in your ledger.

Each month is rounded to the cent and the last month takes the remainder, so a 36,000.00 van depreciated over 60 months adds up to exactly 36,000.00.

The October 2026 sample

Entry Calculation Amount
Delivery van (36,000.00 - 0.00) / 60 600.00
Espresso machine (9,000.00 - 1,800.00) / 48 150.00
Insurance policy 4,800.00 / 12 400.00
Software subscription 1,140.00 / 12 95.00
Equipment loan interest 25,000.00 x 7.2% / 12 150.00
Total 1,395.00

All figures are fictional.

About the loan entry

The entry assumes the whole loan payment was posted to the loan account when the bank statement was categorized. It moves the interest out: debit interest expense, credit the loan. If the lender's statement shows a different interest figure, because it counts actual days, use the lender's figure. Only the interest is an expense; the principal pays down the loan.

FAQ

Should depreciation start in the month an asset is bought?

That is a policy choice. A common one is a full month in the month the asset goes into service. Whatever you pick, use it for every asset and set Start to match.

Why spread a prepaid cost instead of expensing it?

A 12-month insurance policy paid in July covers July to June. Spreading it puts each month's share in that month, so the P&L for one month isn't hit by a year's cost.

What goes in the client questions log?

Anything you can't tell from the statement alone. Ask once, write down the answer and where you booked it, and the same vendor won't need asking next month.

Learn more

Accounting software for accountants on ZeraBooks, and the ZeraBooks month-end close checklist.

License

The content and data in this repository are licensed under CC BY 4.0. The code (draft_entries.py) is licensed under MIT.

Maintained by ZeraBooks.