I’m working on a holiday booking app. I need to calculate the number of days selected, excluding bank hols and weekend. I watched a video which showed how to do this using two date pickers and connecting to my BankHolidays list.

I’m using CountRows(glbFilteredDates) in a text label to display – which is working nicely.
But this is a side list which just holds the bank holidays. My users are creating the booking on another SharePoint list, called TimeOffTracker. Is it possible to:
1. Have users create the booking in the TimeOffTracker list
2. Then as the user selects an end date, the app references the BankHoliday list and calculates the number of working days
3. User then submits the request which creates the booking and adds the number of working days to the number of days column in the TimeOffTracker list.
I tried the formula with a form and the two date datacards connected to TimeOffTracker but it doesn’t quite work.
I would like the number of days to be calculated when user selects an end date, so I put the formula in the end date’s OnSelect property. Then I was hoping to can use the form’s submit button to write the information back to the TimeOffTracker list.

This time Count rows is showing an error.

Hope that makes sense! Any help would be gratefully received. Thank you.