J
J. Trucking
Hello,
I was wondering if anyone has ever tried to create a time management
system that accounts for banked time. This is the structure that I am
trying to build something for:
1. An employee gets 40 hours a week billed out at regular time.
2. All hours after 40/week are counted as overtime.
3. An employee can only get paid for a maximum amount of overtime
hours per pay cheque. The rest of the hours must be "banked".
4. When an employee requires some time off, they can pull/use hours
from their banked time so that they can still be paid for the time
off.
For example, John Doe works 56 hours in one week. John's "overtime
restriction" is 12 OT Hours/pay period. So John will get paid for 40
regular hours, 12 OT hours, and will "bank" 4 hours in that pay
period. Later that year, John needs part of a day off so he uses his
4 hours of banked time. Unless he has accumulated more hours to this
point, he now has zero banked hours remaining.
The employees time each day is entered into a table called
tblTimeSheet. It records TimeSheetID, EmployeeID, ProjectID,
DateWorked, HoursWorked, and CostCode. In another table called
tblEmployees, I store (among other items) EmployeeID and MaxBankedTime
(the max hours per pay period that can be paid).
What I need is to be able to enter in a date range (on a form) which
could represent a pay period. The result will be the regular hours,
overtime hours, banked time accrued during this pay period, banked
time used during this pay period (which is tracked using a certain
CostCode ie. John used 8 banked hours on 02/01/08 which will have a
costcode of "11"), total banked time accrued for the whole year to
this point, as well as the total banked time remaining from previous
years (because banked time will carry over to the next year if it is
not used).
I am a little stumped as to the best way to accomplish part of this -
mainly how to account for the historical banked time for the previous
years.. Any advice would be greatly appreciated. Thanks in advance.
John
I was wondering if anyone has ever tried to create a time management
system that accounts for banked time. This is the structure that I am
trying to build something for:
1. An employee gets 40 hours a week billed out at regular time.
2. All hours after 40/week are counted as overtime.
3. An employee can only get paid for a maximum amount of overtime
hours per pay cheque. The rest of the hours must be "banked".
4. When an employee requires some time off, they can pull/use hours
from their banked time so that they can still be paid for the time
off.
For example, John Doe works 56 hours in one week. John's "overtime
restriction" is 12 OT Hours/pay period. So John will get paid for 40
regular hours, 12 OT hours, and will "bank" 4 hours in that pay
period. Later that year, John needs part of a day off so he uses his
4 hours of banked time. Unless he has accumulated more hours to this
point, he now has zero banked hours remaining.
The employees time each day is entered into a table called
tblTimeSheet. It records TimeSheetID, EmployeeID, ProjectID,
DateWorked, HoursWorked, and CostCode. In another table called
tblEmployees, I store (among other items) EmployeeID and MaxBankedTime
(the max hours per pay period that can be paid).
What I need is to be able to enter in a date range (on a form) which
could represent a pay period. The result will be the regular hours,
overtime hours, banked time accrued during this pay period, banked
time used during this pay period (which is tracked using a certain
CostCode ie. John used 8 banked hours on 02/01/08 which will have a
costcode of "11"), total banked time accrued for the whole year to
this point, as well as the total banked time remaining from previous
years (because banked time will carry over to the next year if it is
not used).
I am a little stumped as to the best way to accomplish part of this -
mainly how to account for the historical banked time for the previous
years.. Any advice would be greatly appreciated. Thanks in advance.
John