Hi all,
I have this formula which works fine until you have a person who goes over into the next day. I have an employee who came in at 9:00 am left for lunch came back from lunch then left at 5 but then came back same day at 9:00pm and left again at 1:15 am, which also requires a second record for the day to be entered into the BD. So my formula now has him at -19 hours, which is throwing off his total weekly time. Any ideas as to how to correct this?
Thankx
Here's the formula:
DailyTime: Round((TimeValue([Time Out PM])-TimeValue([Time In AM])-IIf([Time In Lunch] Is Not Null And [Time Out Lunch] Is Not Null,TimeValue([Time In Lunch])-TimeValue([Time Out Lunch]),0))*24,2)
I have this formula which works fine until you have a person who goes over into the next day. I have an employee who came in at 9:00 am left for lunch came back from lunch then left at 5 but then came back same day at 9:00pm and left again at 1:15 am, which also requires a second record for the day to be entered into the BD. So my formula now has him at -19 hours, which is throwing off his total weekly time. Any ideas as to how to correct this?
Thankx
Here's the formula:
DailyTime: Round((TimeValue([Time Out PM])-TimeValue([Time In AM])-IIf([Time In Lunch] Is Not Null And [Time Out Lunch] Is Not Null,TimeValue([Time In Lunch])-TimeValue([Time Out Lunch]),0))*24,2)