Days excluding weekends and holidays

Hello.
I have a column for "start date" and "end date" in my database. I want to create a custom expression that counts the days from the "start date" to the "end date", but I do not want to include weekends and holidays. I have created a table for holidays. Is there a good way to do this?