What 300 berry pickers taught me about building software people can't opt out of
20 September 2026, updated 3 November 2026 · 8 min read
Most software has a back door. If the app annoys you, you close the tab. If the checkout is slow, you buy somewhere else. Rannikon Puutarha is a berry farm in Halikko, Southwest Finland, and the software I built for it has no back door. If my hours calculation is wrong, somebody who picked strawberries for eleven hours gets paid for nine. They cannot switch to a competitor. They just get less money.
Over 300 seasonal workers use the system every season, spread across six house groups, in five languages: English, Ukrainian, Khmer, Vietnamese and Nepali. Most of them are from Ukraine, Cambodia, Vietnam and Nepal. Most of them will never read a release note. This is what building that taught me.
The software had to lose an argument with a piece of paper
Before I wrote a line of code, Rannikon ran on four paper forms, and every one of them had rules that had been negotiated over years:
- The white paper — work paid by the hour.
- The orange paper — extrawork, capped at 3 hours per day Monday to Friday, 11 hours on a Saturday.
- The weekly summary — Monday to Sunday totals, capped at 17 extra hours a week, with a signature line where the worker confirms they want the extra hours.
- The green paper — berry picking, recorded in kilograms rather than hours.
My instinct as a developer was to simplify this. One clean table, one total, done. That instinct was wrong. Those four forms are what payroll audits against and what a labour inspector would ask for. The caps are not UI decisions I get to make; they are the terms people work under.
So the app does not replace the forms. It produces them — the same four documents, same column order, downloadable as PDF or Excel, with the worker's name and work number on top.
One calculation, one place, and it is uglier than you want it to be
Here is the rule a Rannikon day actually follows. The first 30 minutes of break are an unpaid eating break. If you took that break, your paid day is measured inside an 8-hour-30-minute window; if you did not, it is 8 hours. Anything past that window stops being white paper work and becomes orange paper extrawork. Any break you took beyond the first 30 minutes comes off the extrawork, not off your regular hours.
That is the entire business. It is about fifteen lines, and it is the most important code in the project:
function calculate(actualStart, actualFinish, breakMins) {
const totalBreak = Math.max(0, breakMins || 0)
const extraBreak = Math.max(0, totalBreak - 30)
const workedMins = toMins(actualFinish) - toMins(actualStart)
const WHITE_WINDOW = totalBreak >= 30 ? 510 : 480
if (workedMins <= WHITE_WINDOW) {
// short day: it is all white paper, minus the break
return { white_hours: toHHMM(workedMins - totalBreak), orange_hours: '0:00', ... }
}
// long day: white caps at 8:00, the rest is orange
const orangeStart = addMins(actualStart, WHITE_WINDOW)
const orangeMins = toMins(actualFinish) - toMins(orangeStart) - extraBreak
return { white_hours: '8:00', orange_hours: toHHMM(orangeMins), ... }
}
I shipped an early version where the frontend had its own copy of this, so the worker could see a live total while typing. It drifted. The two versions disagreed about the extra-break rule, and for a while the screen told people one number while payroll recorded another. Nobody noticed for days, which is the worst way to find out.
Now this function exists once, on the Fastify backend, and the phone is not allowed to have an opinion. The worker types start, finish and break; the server returns the split. It costs a round trip. It is worth it.
The real device is a cheap Android phone with one bar of signal
I built this on a laptop, on fibre, in English. None of those conditions exist where it is used. Workers open the app in a field, often on an inexpensive Android phone, in a language that is not English, with hands that have been picking since six in the morning.
That pushed a lot of decisions that look over-cautious in a demo and turn out to be the whole product in practice: large tap targets, presets instead of free text, a layout that survives a narrow screen, and a mobile build in Expo and React Native alongside the Next.js web app so the same work can be logged either way.
Let people check their employer's arithmetic
This is the feature I am most glad I built, and it was not in the original brief.
Supervisors record hours for their house group. Workers also record their own. For most of the season those two numbers agree, and when they do not, the old process was an argument between a worker and a supervisor with no shared evidence — and the worker nearly always loses that argument.
So the app shows both, side by side, and counts the disagreements: days verified, how many match, how many mismatch, how many are missing, and the running total. The worker can run it themselves, before payroll closes the month, without asking anyone's permission.
A trust feature is a strange thing to argue for on a cost sheet. It does not make payroll faster. What it does is make the number at the bottom of the month defensible, which is the actual product.
Everything good in it was requested by someone who does the work
The first version was a timesheet calculator and nothing else. Every part that makes it genuinely useful arrived because a person asked:
- Batch recording, because a supervisor entering 40 workers one at a time is a worse job than the paper it replaced.
- The berry-picking form in kilograms, because hours are the wrong unit for piece work.
- PDF and Excel export, because payroll's downstream process expects files, not a login.
- Payroll submission with a notes field and a visible history of what was already approved, because "did you send June?" was a recurring phone call.
None of that came out of a planning document. It came from sitting down with Lina, Aleksi and Johanna in person. Every significant decision in this project moved forward in a room, not in an inbox — which is an inconvenient lesson for a developer who would rather send a message.
Where it ended up
The dashboard a worker sees now leads with the four numbers that actually matter to them: total hours, regular hours, extra hours, and kilograms picked. Not charts first. Numbers first, chart second.
The stack, for anyone who cares about that part: Next.js 16 and React 19 on the web, Fastify 5 and PostgreSQL on the backend, Expo and React Native for mobile. The interesting problems were almost none of those things. They were a 30-minute eating break, four sheets of paper and five languages.
Before Rannikon, workers filled in those four forms by hand and payroll spent days checking them. That check now takes minutes. If you want the full build — architecture, roles, the admin side, deployment — it is written up properly in the Rannikon case study.
Got a problem that needs solving?
contact@victorabuchi.com