The problem
HR and payroll for India and New Zealand, white-label and multi-tenant. Two countries of statutory compliance is the hard part. A greenfield build would have spent its first months on tenancy, billing and permissions instead.
The constraint
A core IT team of 12 to 16, not a team of forty.
What I decided
Build on the existing multi-tenant platform and spend the time on payroll. The trade-off: DriftHR inherited the platform's assumptions, so some HR needs had to fit a model that was not designed for them.
What shipped
236 data models. Payroll engines for both countries: TDS, EPF, ESI and professional tax across 13 Indian states, and PAYE, KiwiSaver, ESCT, ACC and the Holidays Act in New Zealand. Statutory filing for ECR, ESIC and 24Q in India and payday filing in New Zealand. Over 280 payroll golden tests pass. DriftHR is at release candidate.
What I learned
Payroll is not a feature, it is a compliance product. The golden tests exist because you cannot find a payroll error from a customer.