Does workday() function with weekend holiday recognize it during the week?

Hello. In my send email activity, part of my message logic uses the workday function in an expression.

=if(
  isnull(pv!request.value),
  workday(today(), 5),
  workday(today(), 6)
)

While testing last night (July 1st), we expected the date returned to be 5 working days ahead (July 8th) since the value is null (verified). The resulting email was 6 working days ahead (July 9th).

My only assumption is that Independence Day is observed on Monday, July 5th so the workday function excludes Monday in its calculation. Is this true?

The workday function allows for an array of holidays to exclude, but the sample seems to want specific dates, not just a identifier of the holiday name.

Are we expected to write every year of dates? It can be done, but was just interested in this approach.

  Discussion posts and replies are publicly visible