Hacker News new | ask | show | jobs
by swalberg 904 days ago
I used to run a small payroll company in Canada, everything was done in Rails.

Call it brute force but every time the rules updated I'd run scraper against the CRA calculator that would calculate payroll across a variety of provinces and pay ranges and output it as rspec. Then i could test that i was compliant and hadn't missed a rule or typoed a value.