Hello,
I currently have a formula for an end date that is the Install Date +1. This was put in place based on the assumption that a technician would start in the PM and finish the install in the AM (most are this way) or start in the AM and finish in the PM. The Departure time is also based on this assumption. My challenge is two fold:
If the tech is on site from 8:00 pm to 11:00 pm (the end date would be the same as the Install date) or 1:00 am to 6:00 am (this would be the Install date +1).
The formula below is based on the PM arrival/AM departure. I am not sure how to adjust this to accommodate the PM to PM and the AM to AM as well.
((VALUE(LEFT([Store Open Time]@row, FIND(":", [Store Open Time]@row) - 1)) + IF(CONTAINS("p", [Store Open Time]@row), IF(VALUE(LEFT([Store Open Time]@row, FIND(":", [Store Open Time]@row) - 1)) <> 12, 12), IF(VALUE(LEFT([Store Open Time]@row, FIND(":", [Store Open Time]@row) - 1)) = 12, -12))) + (VALUE(MID([Store Open Time]@row, FIND(":", [Store Open Time]@row) + 1, 2)) / 60)) + (([Install End Date]@row - [Install Date]@row) * 24)
Any assistance would be appreciated. Right now people are manually overriding the time calculation with 3.15 if the tech arrives at 8:00 pm and departs(store open) at 11:15 pm or 8:00 am to 11:15 am.
Thank you in advance
Sharon Castiglia