How to calculate number of days between arrival date and departure date

  • kaksparks
    Asked on June 15, 2015 at 1:21 PM

    Hi there,

    I am trying to create the from from your template, have some enquiry. 

    As i create the for enquiry for holiday rental site, i have like the arrival date, departure date where i saw i can add the calendar to it. After that i have the box of total range/night of stay which is with my own form, with this box client just click the box, and the system will automatic calculate the night number from the in put of arrival & departure date.

    Is that possible in your system too?

     

    Looking forward to hear from you soon.

     

    Chatrudee

  • BJoanna
    Replied on June 15, 2015 at 1:59 PM

    You can achieve that with using of our Form Calculation widget.

    First you need to add 2 date fields to your form. 

    How to calculate number of days between arrival date and departure date Image 1 Screenshot 40

    Then add Form Calculation widget and configure it to calculate the number between two dates. 

    How to calculate number of days between arrival date and departure date Image 2 Screenshot 51

    How to calculate number of days between arrival date and departure date Image 3 Screenshot 62

    Here is a demo form I made: http://form.jotformpro.com/form/51655653005957? 

    Feel free to clone it for closer look.

    More about how to perform form calculation you can find in this article:

    http://www.jotform.com/help/259-How-to-perform-calculation-in-the-form 

    Hope this will help. Let us know if you need further assistance.