I am developing an attendance tracking system where user can check-in and check-out and system will capture the attendance date.
Let me give you inputs theoretically here:
Name: User A
Assigned Shift: 19:00 -- 03:00 (night shift)
Multiple checkins-checkouts allowed.
Use case 1:
Date: 2022-12-01
Check in | Check out | Expected Attendance date |
---|---|---|
2022-12-01 18:00 | 2022-12-02 02:00 | 2022-12-01 |
Use case 2:
Date: 2022-12-01
Check in | Check out | Expected Attendance date |
---|---|---|
2022-12-01 18:00 | 2022-12-02 00:00 | - |
2022-12-02 01:00 | 2022-12-02 02:00 | 2022-12-01 |
Use case 3:
Date: 2022-12-02
Check in | Check out | Expected Attendance date |
---|---|---|
2022-12-02 01:00 | 2022-12-02 02:00 | 2022-12-01 |
Use case 4:
Date: 2022-12-02
Check in | Check out | Expected Attendance date |
---|---|---|
2022-12-02 04:00 | 2022-12-02 04:15 | 2022-12-01 |
I need your help to develop an algorithm which will predict the attendance date when provided with shift timings (19:00 to 02:00) and user's time at that instance.