What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.

  • Profile Image

    How to create total number of nights

    Asked by aiboers7 on April 11, 2017 at 07:25 PM

    I would like to add a field in which will show the total number of nights based on the previous two fields: One arrival, the other is departure. Please advise.

    Page URL:

  • Profile Image
    JotForm Support

    Answered by EltonCris on April 11, 2017 at 11:31 PM

    That can be achieved using date fields and calculation.

    However, this widget is created to perform such function.


    Here's how:

    1. Add the Dates Difference widget in your form

    2. Add a Form Calculation widget

    3. In the calculation widget, add the date difference field to get the calculated days

    Demo: https://form.jotformpro.com/71008489422961