Five weekday entries of 6, 7, 8, 5 and 4 hours add up to 30 hours.
In this example, one employee’s five entries contribute 30 hours to the team total.

Checking hours before saving

I designed the Tkinter form around a Monday-to-Friday working week. It accepts whole hours from 0 to 24 for each day and rejects values outside that range before saving the employee’s record.

Calculating the weekly report

Each employee has a local CSV file. The report reads the five weekday values, calculates the employee’s total, then adds the individual totals to produce the team figure.

What the code review showed

A new submission replaces the employee’s previous record, and the report reads a fixed list of files. The next change I would make is to save each entry against a specific week so earlier reports can be reproduced.

I would also add a clear prompt for blank or non-numeric entries. In the current version, those entries can fail when the form converts them to whole numbers.

Source code

View the timesheet application on GitHub