Calculating number of nights based on check-in and check-out dates

  • JS2706
    Asked on August 29, 2016 at 2:37 PM

    Wondering how I would show the total number of nights from the Check in and Check out fields. Kind of like hotels do.

  • Mike
    Replied on August 29, 2016 at 4:19 PM

    This is possible to calculate the difference in days based on the DateTime fields selection.

    Example:

    - Added DateTime fields.

    Calculating number of nights based on check in and check out dates Image 1 Screenshot 30

    - Added calculation with the Form Calculation widget field.

    Calculating number of nights based on check in and check out dates Image 2 Screenshot 41

    If you need any further assistance, please let us know.