How we can calculate the time difference in total minutes

  • Carrapateena
    Asked on August 5, 2022 at 11:08 PM

    Hi

    how we can calculate the time difference between the start and stop time in total minutes in a separate tab.


    1659755241 62eddae9c88c8  Screenshot 10

    1659755265 62eddb019e432  Screenshot 21

    I want this 23.53 in total minutes as 1433 minutes in seperate column,


    Is that something possible,


    Thanks

  • Cecile JotForm Support
    Replied on August 5, 2022 at 11:20 PM

    Hello Carrapateena,

    Thanks for reaching out to Jotform Support.

    Please allow me some time to check on this and get back to you with relevant information.

  • Cecile JotForm Support
    Replied on August 6, 2022 at 12:29 AM

    Thanks for waiting.

    I did some tests but I cannot seem to achieve your requirement using Time Range. As a workaround, you might consider using 2 time fields in 24hr format.

    1659759962 62eded5a16b14 15 Screenshot 10

    Then, add a form calculation widget to get the time difference in minutes.

    Formula: (End Time - Start Time)*60

    1659760016 62eded90baa66 16 Screenshot 21

    Demo: https://form.jotform.com/222171112539043


    1659760087 62ededd7e88da 7 Screenshot 32

    Do get back to us if you have any questions.

  • Carrapateena
    Replied on August 6, 2022 at 12:55 AM

    Hi,


    Please find the screenshot below, if we would like to calculate the timing for pm start and am finish it goes negative,


    How we can rectify this,


    Thanks,


    1659761683 62edf41389120  Screenshot 10

  • Mary JotForm Support
    Replied on August 6, 2022 at 4:51 AM

    Hello Carrapateena,

    Please allow me some time to check for any workarounds, I will get back to you as soon as I have an update.

    Thank you for your patience.

  • Mary JotForm Support
    Replied on August 8, 2022 at 8:12 AM

    Hello Carrapateena,

    Thank you for waiting. You can add another form calculation widget with the following formula to convert the negative value to a positive one:

    1659960696 62f0fd786b94e  Screenshot 10

    It should now look like this:

    1659960708 62f0fd840618d  Screenshot 21

    Give it a try and let us know if this works for you.