Skip to content

Timesheet errors before payroll: how an AI Worker catches them

DYNAMINDS Labs team · · 6 min

AI Workers

In brief

An AI Worker checks working time records before HR closes the month: it compares clock-in data from the time and attendance system with each person's shift schedule, leave requests and sick leave. It flags missing punches, overtime nobody ordered, a second start within the same working day and rest periods that are too short. The result is a list of discrepancies split by line manager. Corrections in the HR system and the handover to payroll are approved by a person.

The errors that come back every month

Working time records break in a handful of predictable places. Each one ends in a payroll correction or a dispute with an employee if nobody catches it before month end.

ErrorWhere it comes fromEffect on payroll
missing clock-in or clock-outforgotten badge, a reader fault, walking in through another gatea day with no hours or with default hours
work outside the schedulea shift swap agreed verballyovertime paid or skipped without a basis
overtime without an ordera shift extended without the manager's consenta pay supplement nobody approved
leave in the HR system, punches in the time clockthe request was not withdrawn after the person came backa day paid twice or a wrong leave balance
sick leave not recordedthe medical certificate arrived after the schedule was closedfull pay instead of sick pay or benefit
rest period too shorttwo shifts too close together after a swapa breach of the labor code and a risk during an inspection

A payroll specialist at a three-shift plant knows these errors by heart. The problem is that she looks for them by hand across several hundred timesheets, usually in the last two days before payroll.

What the Polish Labor Code requires

The rules for checking working time come from the Polish Labor Code (Kodeks pracy) and the regulation on employee records. The AI Worker does not reinterpret the law. It receives the rules in a rules card, translated into the company's own work regulations.

  • Working time records (Article 149): the employer keeps them for every employee to calculate pay and other benefits correctly. Their exact content is set by the regulation on employee records.
  • Working time standard (Article 129): 8 hours a day and an average of 40 hours in an average five-day week within the settlement period.
  • The employee's working day (Article 128): 24 consecutive hours from the start of work under the schedule. Starting work again within the same 24 hours is a common source of overtime nobody noticed.
  • Rest: at least 11 hours a day (Article 132) and at least 35 hours a week (Article 133).
  • Overtime cap for the employer's special needs: 150 hours per calendar year (Article 151 § 3), unless a collective agreement, the work regulations or the employment contract set a different limit (Article 151 § 4).

On this basis the rules in the rules card become specific, for example "a shift started less than 11 hours after the previous one ended: flag for clarification" or "at the current pace, this person's overtime will exceed the annual cap in October: warn the manager".

How the Timesheet checker works

The Timesheet checker reads three sources: the time and attendance system, the shift schedules and the HR system with leave and sick days. At month end the run looks like this:

  1. It pulls the data from the time clock, schedules and HR for the whole settlement period, not just the last month, because the average standard is measured across the period.
  2. It pairs every day for every person: punches with the planned shift, absences with requests.
  3. It flags discrepancies by the categories in the table above and records evidence with each one: punch times, the scheduled shift, the request number.
  4. It calculates rest and overtime per working day and per week, and for the annual cap it shows how many hours are left.
  5. It splits the list by manager: each one gets only their own people and the questions only they can answer ("did Smith cover for Jones on October 14?").
  6. It collects the answers and prepares a set of corrections for HR to approve.

What matters is what is missing here: the AI Worker does not change records, does not approve overtime and does not send data to payroll. Those three steps stay with HR and the managers.

A worked example for a three-shift plant

Take, as an example, a plant with 300 people on three shifts. If one timesheet in ten has a single discrepancy in a month, HR has 30 cases. When each one means finding the person, calling the manager and making a correction, that easily adds up to two days of work before payroll. The AI Worker does not remove these cases, because the decision still belongs to a person. It removes the searching: the payroll specialist gets a ready list with evidence, and the manager answers questions about their people a few days before closing, not on payday.

It is worth running this calculation on your own data. The method is described in How to calculate whether an AI Worker pays off.

Personal data and boundaries

Working time records are personal data, and information about sick leave concerns health, which is a special category of data under Article 9 of the GDPR. That is why the AI Worker gets only what it needs for the comparison: the period and type of absence, without the content of certificates. It has its own read-only account in the time clock and HR systems, and a log records every query it makes. This is covered in more detail in The GDPR and AI Workers.

The AI Worker does not assess people. It does not rank late arrivals and does not propose penalties. The list of discrepancies is about documents, not about a person's behavior. This boundary is written into the rules card before the AI Worker receives any data.

If the time clock, HR and payroll are separate systems in your company, the data exchange between them is often a source of errors in itself. That topic is covered in Integrating HR and payroll with the ERP and time tracking. The first step is usually a pilot on an export from two or three months, without connecting to any system.

Questions and answers

Does the AI Worker correct the records in the HR system itself?

No. It prepares corrections with evidence, and an HR specialist enters and approves them. The same applies to approving overtime and handing data over to payroll. The AI Worker has read-only rights in the systems, so even an error in one of its rules cannot change anyone's pay.

Will this work if our schedules are kept in a spreadsheet?

Yes, as long as the spreadsheet has a fixed layout: person, day, shift. The AI Worker reads a spreadsheet the same way it reads system data. When every manager keeps the schedule differently, the first step of the pilot is to agree on one template or describe the differences in the rules card.

How does the AI Worker know which overtime was ordered?

From wherever the company records overtime orders: a request in the HR system, an email from the manager, an entry in the schedule. If the order exists only verbally, the AI Worker marks the overtime as "no order in the records" and asks the manager. After a few months you can see where the way overtime is ordered should change.

Does the AI Worker see diagnoses from medical certificates?

It should not, and in a well-configured deployment it does not. The period and type of absence are enough to check the records. The scope of data is set in the rules card and the data processing agreement, and the data protection officer can review it before the start.

Start with one task. Describe it, and DYNAMINDS Labs will prepare a free diagnosis.

Meet DYNAMINDS Labs

Read more: AI Workers

All in AI Workers →