Skip to main content
Participating Frequently
May 28, 2018
Question

Time Calculation

  • May 28, 2018
  • 1 reply
  • 792 views

Good Afternoon All Professional,

Would need your professional information as below table i have create in adobe reader.

the calculation of Total Hrs as below "3rd screenshot"

what i want is as below:-

3.15 change to 3.25

2.45 change to 2.75

5.30 change to 5.50

the actual calculation is

9:15pm = 21:15 hrs = 1260min + 15min = 1275min

6:00pm = 18:00 hrs = 1080 min

1275min - 1080min = 195 min

195 / 60 = 3.25

do any can give me a code to solve it?

Many thanks for all of you.

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
May 28, 2018

So you have a code that calculates the time difference but the result is in decimals (3.25) and you want to convert it to a time notation (3:15)?

Participating Frequently
May 28, 2018

i want

3.15 to 3.25

3.30 to 3.50

3.45 to 3.75

is it possible to do in javascript?

try67
Community Expert
Community Expert
May 28, 2018

I see... Can you post your original code?