CertBrain
Courses
Home
Blog
Sign in
← When Not to Use AI
1 / 7
Question
A payroll system must calculate overtime pay exactly as the employment contract defines it: one and a half times the hourly rate for every hour over 40 in a week. A manager suggests using machine learning. What is the BEST approach?
1
Train a regression model on past payslips to estimate each employee's overtime pay
2
Use clustering to group employees by their overtime patterns before paying them
3
Implement the contract's formula as a rules-based calculation in ordinary code
4
Prompt a foundation model with the contract text and ask it to calculate the overtime
Press 1–4 to pick an answer