[FIX]  ressource hour calculation #3681

Correct working hour calculation for:
* minutes instead of only hours
* timezone handling
Optimize/Enhance
* get required leaves from database engine instead of for loop
* include leaves for all calendars