Hello,
I’m writing a script for a delivery performance where I want to compare the planned date and time of delivery with the actual delivery date and time.
If the delivery occurred as planned, the performance is 100 %, but if the delivery occurred within a given time span eg. +/- 24 h, the delivery is calculated linear. I.e. if the delivery is 24 h early or late the performance is 0 %, and if the delivery is 12 h early or late the performance is 50 %.
It gets a bit more complicated since I want to exclude weekends and non-working hours (workday is between 0600-22.15) from the result.
Can anybody help me?
Thanks for your help!
Best regards
Erik
Bookmarks