Hi,
I’ve found everything to extract and calculate time but I’m stuck on how I can format time to a whole number. So my output now is:
- Hours: 8
- Minutes: 30
However, I would like to create an output based on the above that gives as a result: 8,5. So time is compared to the number 1 and every 15 minutes is 0,25. I don’t really know how I can search it in English hence my question here.
Examples:
- 2 hours and 15 minutes: 2,25
- 9 hours and 45 minutes: 9,75
- 1 hour: 1
Can anyone help me out?
Thanks!
