Need Help Fixing the Code I am Using to Calculate Time
- March 17, 2020
- 3 replies
- 2989 views
Thank you for your HELP!!
Before I start...I have research this page and have tried to apply codes that have been posted and have tried to decipher them, which I humblly say I have failed and now asking for help. So as you look at my attachment you may see some scrambled codes. I'm lost and need assistance.
All I need, seems simple but apparently is not to me, is to be shown how many hours between the start time and the end time for each day minus 30min lunch break for each day and then total those hours across for a weekly total
I vaugly understand that the date will pose a problem if crossed. But my times should not cross over the 12 hour period, per se.
But it seems that when I put a time group in it works perfectly but when I put another time group in it doesn't calculate correctly.
For example: 0800 start 1630 finish equals 8 hours - PERFECT
but if I use 0630 start and 1700 finish this jumpts to 11
So my calculations fields are as follows
"SunRow1" & "SunRow2" will add into "day1" (the field day1 is a hidden field to the end user)
Then "day1" will add the "lunch" field (which will always be -.50 (the field lunch is hidden to the end user)).
The end user will see the results in Day1ttl. The results should only be shown at a whole or half 8 or 8.5 digits.
Then for each week the total week should show the total hours based on the day#ttl fields for each week.
Again Thank you any help!!
