How to create a form to input the start and end dates for a project, and automatically calculate the duration in business days, considering weekends and holidays, to effectively plan project timelines?

How to create a form to input the start and end dates for a project, and automatically calculate the duration in business days, considering weekends and holidays, to effectively plan project timelines?

Add 2 date fields in your form builder, one to input project start date and another to input project end date.

2 Date fields
    1. To restrict the selection of weekends (Saturdays and Sundays) in both the Date fields, unselect Saturday and Sunday in the Allowed Days of Week dropdown.

      Restrict weekends

    2. To exclude specific busy dates or holiday dates from the calendar of a Date field throughout the year, you can configure a Global Holiday List. Check out the steps to create a Global Holiday List. Once you create a list, associate the holiday list with your form. Check out the steps for associating a global holiday list with your form.
    3. To calculate the number of business days within the project timeline, add a Formula field from the Advanced Fields to your form and use the AllowedDaysCount function as shown.

      Calculate using Formula field