I'm currently trying to make a TOIL timesheet for employees. It has always been done on paper, manually. I am looking to use the same method but digitize and automate.
- We accrue 1.5 hours for ever hour worked over 39 hours.
- We manually type in hours worked along with the date worked. I'm not looking for a formula for automatically logging TOIL after 39 hours, as we log our TOIL manually in hours worked (B4).
- Any TOIL not used within 6 weeks of the "Date Worked" is lost.
- Available Balance changes with hours accrued and hours taken, as well as being affected by hours lost (not used within 6 weeks)
I am struggling in creating a formula that has a running balance (D1) taking into account Hours accrued (C3), and Hours Taken (D3) that incorporates the time limit of 6 weeks, uses Hours Accrued amount from earliest first before it is timed out, and removes any accrued hours not used up within that time.
Is what I want to achieve possible, or am I trying to over-complicate? Any suggestions would be greatly received. Please let me know if any information is unclear, or more is needed.
Here is a example of the form we use, including cell references, should anyone be able to give advice.
- We accrue 1.5 hours for ever hour worked over 39 hours.
- We manually type in hours worked along with the date worked. I'm not looking for a formula for automatically logging TOIL after 39 hours, as we log our TOIL manually in hours worked (B4).
- Any TOIL not used within 6 weeks of the "Date Worked" is lost.
- Available Balance changes with hours accrued and hours taken, as well as being affected by hours lost (not used within 6 weeks)
I am struggling in creating a formula that has a running balance (D1) taking into account Hours accrued (C3), and Hours Taken (D3) that incorporates the time limit of 6 weeks, uses Hours Accrued amount from earliest first before it is timed out, and removes any accrued hours not used up within that time.
Is what I want to achieve possible, or am I trying to over-complicate? Any suggestions would be greatly received. Please let me know if any information is unclear, or more is needed.
Here is a example of the form we use, including cell references, should anyone be able to give advice.
A | B | C | D | E | F | G | |
1 | Current Available Balance: | 0.5 | |||||
2 | |||||||
3 | Dates worked: | Hours Worked: | Hours Accrued: | Hours Taken: | Reason: | Agreed By: | Date Agreed: |
4 | 12/10/2020 | 4 | 6 | Met client early | |||
5 | 18/12/2020 | 1 | 1.5 | Met client late | |||
6 | 23/12/2020 | 1 | Extended lunch |