Product6 Oct 20262 min read

What we learned building payroll for five countries

Rules differ, but the shape of a good payroll engine does not.

What we learned building payroll for five countries

OfficHR started with Indian payroll. Then clients with teams in the Gulf, the UK and elsewhere asked for the same thing in their countries. Building for several sets of rules taught us more about payroll than any single one could.

Rules differ, the shape does not

Every country has its own taxes, contributions, leave rules and payslip format. But every payroll run has the same shape: who worked, how much they earn, what is added, what is deducted, and what must be reported. We built that shape once and kept the country rules outside it.

Country packs, not forks

Each country lives in its own pack: the statutory components, the rates, the leave policies, the payslip layout and the reports. Turning on a country means switching on its pack, not maintaining a separate copy of the product. A fix to the engine reaches every country at once.

Dates matter more than formulas

The hardest bugs were never about maths. They were about time: a salary change in the middle of a month, a joining date on the 29th, leave that crosses a month end, a rate that changes on a government date. The engine treats every value as valid from a date, so a past month can always be recalculated exactly as it was.

Attendance feeds the run

Payroll is only as good as the attendance behind it. Check-ins from the mobile app, approved leave, overtime and loss of pay all flow into the run automatically, with every adjustment visible before anything is finalised.

Lock it, then explain it

Once a run is approved it is locked, and any later correction becomes a visible adjustment rather than a silent edit. Every number on a payslip can be traced back to the rule and the record that produced it, which is what auditors and employees both want to see.

The result is a payroll engine that does not care which country it is in. The country packs carry the local knowledge, and the engine carries the discipline.

Keep reading.

Newsletter

One useful note a month.