Saldo.
Get started

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?

Read the docs →
0 runtime deps ~350 lines of core 12 passing tests
Week 30 · 21 h plan
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
Filling from the plan…

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.

Zeitsaldo
+0:00
Running balance: opening + Σ(Ist − Soll) through today.
Soll
21:00
Weekly Pensum spread over scheduled days — holiday-aware.
Ist · Monat
56:00
Worked + paid absences, real for any month.
Feriensaldo
11.0
Entitlement + carryover − taken, pro-rated by workload.

Correct, not just convenient

The edge cases most timesheets get wrong.

01

Mid-year workload changes

A 60% → 80% change is effective-dated. Every past month stays correct; nothing is retro-broken.

02

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.

03

Paid vs unpaid absences

Paid leave fulfils the target like worked time; unpaid doesn't. Your categories, your rules.

04

Honest historical months

A report for a month before tracking began still shows that month's real hours — never a placeholder zero.

05

As-of reporting

A running month reports as of today. Pre-filled future days never appear as already worked.

06

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.

Social enterprises

Arbeitsintegration

Four-eyes approval, Pensum, Feriensaldo and a month-report a case worker can read.

SMEs & HR

Small teams, real payroll

Balances that survive audits: effective-dated workloads, holidays and absences handled correctly.

Developers

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.

Read the docs →