Click here to Skip to main content
15,881,852 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I am developing a program that calculate salaries on the basis of attandance records i.e Timein, Timeout etc etc. The problem is that if an employee's Regular timings are 9am - 6pm. and he continues to work after 6pm till 4am next date. how will i record his Timeout?
As the system considers it the time In for Nextday,
I want that If employee mark hisout-time in next date after hisOvertime the system should record the Overtime hours by adding previous day hors and next day hours,
It should not consider it as Time-in for next date.
Posted
Comments
Er. Puneet Goel 8-Apr-14 7:13am    
Na main ni.....
Rage 8-Apr-14 11:31am    
What do you get as raw input data from the time system ? Do you have time and dates, or only time ? Are the time-in -out always available, or do people sometimes forget to check-in or check-out ?

Basically, you need to pair the times (in and out) each day. So if you have only one at a specific date, consider the first time on next day as the time out of the previous day.

Maybe you can paste a _short_ code extract to show how you are currently handling this.
Kschuler 8-Apr-14 15:04pm    
It would also depend on how you calculate "overtime". If I normally work 9AM to 6PM and one day I work from 9 AM until 2AM the next day, but the rest of the week I work only from 9AM until noon...that ONE day did I work overtime? Or is it calculated by how many hours are worked in the week? And then how would you calculate it if someone worked more than 24 hours straight? You would still mark all of those hours down on the day they timed in? And then have a day where there are no hours marked even if they were there?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900