We calculate it
Gross to net from the statutory tables for that country and year, every deduction itemised on the payslip, and an approval step before anything is marked paid.
Four runs have been calculated end to end this way, on our own and our demo accounts. No client is live on it yet.