Expression to calculate Xth business day in a month?

A Score Level 1

Hello,

I have a requirement where I have a process model that needs to be triggered on the 5th business day of every month. I've already set the Timer Event on the Start Node of my process model on a monthly recurrence, however I'm having trouble writing an expression to return the 5th business day since it varies depending on the month/year. 

Example:

If the expression takes in the current date (3/25/2020), it should return 6 since March 1st was a Sunday, it doesn't count, and the 6th is the 5th business day of March.

If the expression takes in the date (4/1/2020), it should return 7 since April 4 is a Saturday, April 5 is a Sunday, and the 7th is the 5th business day of April.

Any additional help is greatly appreciated!

 Discussion posts and replies are publicly visible