There is no function in the world that can tell you what labor days exist on each community. For example in Spain, holidays go by communities. Madrid has their own, Cataluña their own... In fact, thay are companies having different holidays in the same city.
What you need is a calendar of the company you are refering to, and that's all. Once you have that information, arrange your calculations acording to that calendar.