Need to calculate 48 hours from given DateTime value excluding weekends and non-working days

Hello,

We have a requirement to calculate exact 48 hours from the current date and time (datetime component) excluding the weekends and holidays. We need to validate this based on the date the user selects.

1) We tried using Appian default function workday() but it calculates only date.

if(
ri!date > workday(
now(),
2,
cons!HOLIDAYS_DATE
),
{},
"Please select a Date which is two days in the future"
)

2) We also created a Process Calendar provided by Appian but:

  • It needs to be manually updated in various environments.
  • It considers 22 hours as working time. If the time is >22hrs, it considers that day to be a non-working day by default. I need to be able to select any time.

Can somebody please suggest a solution ? 

Thanks in advance.

Sandra

  Discussion posts and replies are publicly visible