Function to calculate amount of labour days between two dates

To determin the eleapsed time in days for in insurence company we had to dynamicly calculate them. In an earlier project we realized that it wasn’t a good idea to run a batch thats precalculates the values. The almausr.feiertag table is used to save holidays. (It’s the german word for holiday).