T
`Tis Me
I have run into a problem calculating overtime. My Timesheet DB has
several years worth of records for all employees. However, our
overtime is not based on a 40 hour week. It is based on a 28 day
cycle. Anything over 171 hours in 28 days is overtime. I have tried
everything I can think of to break up the date ranges into 28 day
increments from HireDate and calculate the total hours in those ranges
from HireDate, but cannot get it to work correctly. Does anyone have
an idea how to start from the HireDate value, add 28 days, total the
hours in those 28 days and if the total is greater than 171 show the
amount of overtime? My table structures are as follows:
Tbl_Employee:
EmpID - Key
Name: - Employee Name
HireDate - Date Employee Was Hired
Tbl_Time:
TimeID - Key
EmpID - From Employee Table
DTIn - Date & Time In
DTOut - Date & Time Out
I'm not a newbie to Access and can build the rest of the queries to
subtract the amount used, I just can't get the 28 day cycle figured
out. Any help would be greatly appreciated!
TIA
Frank
several years worth of records for all employees. However, our
overtime is not based on a 40 hour week. It is based on a 28 day
cycle. Anything over 171 hours in 28 days is overtime. I have tried
everything I can think of to break up the date ranges into 28 day
increments from HireDate and calculate the total hours in those ranges
from HireDate, but cannot get it to work correctly. Does anyone have
an idea how to start from the HireDate value, add 28 days, total the
hours in those 28 days and if the total is greater than 171 show the
amount of overtime? My table structures are as follows:
Tbl_Employee:
EmpID - Key
Name: - Employee Name
HireDate - Date Employee Was Hired
Tbl_Time:
TimeID - Key
EmpID - From Employee Table
DTIn - Date & Time In
DTOut - Date & Time Out
I'm not a newbie to Access and can build the rest of the queries to
subtract the amount used, I just can't get the 28 day cycle figured
out. Any help would be greatly appreciated!
TIA
Frank