Hi community, I have the following challenge that I’m trying to figure out.
I need to calculate how many hours were spent on a holiday, since the connection is not through SAP, I cannot use the functions that PQL provides for that.
My idea is to get the timestamp related to the last activity that happened on holiday and calculate the throughput time between 9:00 AM and that specific time in order to get how many hours were spent.
Example:
- Activity 1 → Day 1
- Activity 2 → Day 2 (holiday)
- Activity 3 → Day 3
- Activity 4 → Day 4
In this example let’s suppose activity 2 occurred at 13:00, so in this case I should do the following calculation.
13 - 9 = 4 hours → This is the number of hours that were spent on holiday.
Does anyone have a similar experience?