Open source · MIT · zero dependencies
Time tracking that balances.
A dependency-free engine for Soll/Ist time balances, vacation and honest monthly reports. It answers the one question every timesheet dodges — did this person work the hours they were meant to?
| Day | Soll | Ist | Saldo |
|---|---|---|---|
| Mo 20.07 | 7:00 | 0:00 | · |
| Di 21.07 | 7:00 | 0:00 | · |
| Mi 22.07 | 7:00 | 0:00 | · |
| Total | 21:00 | 0:00 | −21:00 |
The four numbers
Every figure is derived — never typed, never faked.
Give it entries, a schedule and an effective-dated workload. It returns the numbers HR, the employee and an auditor all trust.
Correct, not just convenient
The edge cases most timesheets get wrong.
Mid-year workload changes
A 60% → 80% change is effective-dated. Every past month stays correct; nothing is retro-broken.
Holidays reduce Soll automatically
A public holiday on a scheduled day drops that day's target to zero — no one enters a holiday row by hand.
Paid vs unpaid absences
Paid leave fulfils the target like worked time; unpaid doesn't. Your categories, your rules.
Honest historical months
A report for a month before tracking began still shows that month's real hours — never a placeholder zero.
As-of reporting
A running month reports as of today. Pre-filled future days never appear as already worked.
Bring your own categories
Ships a Swiss default; swap in any set of paid/unpaid categories and holiday calendar.
The engine
Pure functions. Bring your own storage and UI.
One call returns the whole picture. No database, no framework, no globals — just input in, numbers out. Drop it into a Next.js app, a cron job, or a spreadsheet backend.
// one call — running balance + month decomposition import { computeTimeSaldo } from 'saldo-engine' const r = computeTimeSaldo({ openingMinutes: 0, openingDate: '2026-01-01', periods: [{ validFrom: '2026-01-01', weeklyMinutes: 21*60 }], schedule: STANDARD_WEEKLY_SCHEDULE, entries: [{ work_date: '2026-07-06', duration_minutes: 420, category: 'work' }], holidays: getHolidayDateSet(2026, 2026), today: '2026-07-20', }) // → { saldoMinutes, monthSollMinutes, // monthIstMinutes, monthSaldoMinutes, computedFrom }
Built for a real need
Made for supported employment — useful far beyond it.
Born replacing a punch-clock at a Swiss social enterprise, where a monthly report goes to a referring social worker. The maths is the same for any team that owes someone an honest account of their hours.
Arbeitsintegration
Four-eyes approval, Pensum, Feriensaldo and a month-report a case worker can read.
Small teams, real payroll
Balances that survive audits: effective-dated workloads, holidays and absences handled correctly.
Embed the maths
A typed, tested, dependency-free package. Own your storage and UI; let the engine own the accounting.
Engine + reference app
Not just a library — a working product to learn from.
The open engine powers a full reference implementation you can lift patterns from:
- Self-service monthly timecards with a today-marked calendar
- Fill-from-plan, then review and submit
- Four-eyes approval queue with instant acknowledgement
- Printable Monatsrapport — interim or final
- Public share link for a referring social worker (no login)
- Absence requests, vacation balance, reminders
Free · MIT · production-tested
Give your hours a balance that adds up.
Install the engine in a minute. Or lift the whole product — it's all open.