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

    Can forms calculate price based on Customer Choices

    Asked by troyg1211 on June 18, 2015 at 12:50 PM

    On my forms Clients have to choose how many hours they want and then put from what time to what time. Ex 4 hours form 3 pm to 7 pm. The problem is they will check the box for 4 hours and Schedule 5 or 6 hours. Ex. 4 hours from 2 pm to 8 pm. 

    What I would like the form to do is allow Clients to put in the hours and give them the price based upon the hours they schedule.

    Call Troy anytime for questions or more info about my question. 678 608 7348

    Page URL:

  • Profile Image
    JotForm Support

    Answered by david on June 18, 2015 at 02:16 PM


    Using a "Time" field, you can get a calculation between two different times:

    You can then forward the total hours to a number field so that you can use the field to evaluate the total cost.  This can be done using the "Update a form field" condition:

    You would then update another field, I made mine total cost, with the appropriate values depending on the total time:

    This is the resulting form:


    You can clone it to see the full setup:


    This would give the total time based on the range of times they choose and then the total cost based on that amount of time.