Automating Leave Management for Complex Workforces