I have the Start time and End time using Bootstrap timepicker, I need a result total Duration in Hours and Minutes , How to Calculate the Spending Hours .? yet now i am trying the Start time(10AM) and End time (10 PM) Total Hours is =12Hours ,but i get result is 0 hrs , till now i am calculating the Numbers only . I dont know how to calculate the time Duration for 24 hours ,In the Below i am attached the Source code till Now i tried ,Kindly give the solution
My Expected result is Highlighted in the red color:
Source Code
Felish

Manas MohapatraRank #182 · 13.2K reputationPosted Oct 4, 2016, 10:29 PM EDT
JavaScript Functions
"demo"
>Nitin SontakkeRank #264 · 9.6K reputationPosted Oct 4, 2016, 9:36 PM EDT
Felish Anand116 reputationPosted Oct 4, 2016, 10:18 PM EDT
Bikesh SrivastavaRank #108 · 20.3K reputationPosted Oct 5, 2016, 5:32 AM EDT