How to get total minutes between 2 times.

  • lehser_nedarb
    Asked on June 26, 2025 at 3:14 AM

    Hello I was hoping somebody could help me out with getting the duration between the start time provided and the end time provided using the time form elements. Currently I figured out a way to do the duration if the time is in the same day but as you can see in the screenshot if I go to the next day after midnight it will not calculate correctly because it wound up calculating it as a negative number therefore throwing everything off. I don't mind starting completely from scratch if that will make it easier on you to explain to me how to do this or just whatever you think is best I'll be happy to do.


    If you need anything else from me please let me know. I await your reply patiently. 🤓

  • Kris Ann JotForm Support
    Replied on June 26, 2025 at 4:02 AM

    Hi Nedarb,

    Thanks for reaching out to Jotform Support. I'll need a bit of time to look into this. I’ll get back to you as soon as I can.

    Thanks for your patience, we appreciate it.

  • lehser_nedarb
    Replied on June 26, 2025 at 4:37 AM

    Take as much time as you need, no rush 👍

  • lehser_nedarb
    Replied on June 26, 2025 at 4:38 AM

    Also if it helps I'm fine with also converting to hours instead of minutes if that's easier. I just like the minutes because it's bit more exact. But either way is fine with me, it doesn't matter.

Your Reply