I see you have the dates for the line entry, why are you not using this field?
If you work shifts will cover the from 1:00am to 3:00am and your locality recognizes Daylight Savings Time (U.S.) or Summer Time (UK & Europe) you will need to have the dates so the scripts will properly handle the time shift for the spring and fall.
I would use functions to preform the date time string conversions and summing the time periods. Another technique to consider is to record the time worked in minutes for the even values and use a custom format script to format the display the elapsed time. This script could also be a function since this custom formatting will be used about 24 times.
- Adobe’s manuals
You should consider the following:
For more control over the occurrences of computations for fields, design your own computation process and trigger the process based on field events.
- It is possible to consolidate the definition of every computation needed in your form at the document level. Codes attached to field-level events are function calls whose definitions are found at the document-level.