Skip to main content

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!

I’ve found a solution by using Formatter > Numbers > Math calculation Divide. If anyone has a better solution, please advice. :) 


Hey ​@bocal,

Try this Formatter → Numbers → Perform Math Operation action. Use this formula

  • {{Hours}} + ({{Minutes}} / 60)

Dynamically map the hours and minutes. Hope it helps!


Yes, thank you very much. That is the solution I figured out as well, if only I thought a little longer before posting. 😅


Great work here, ​@bocal and ​@Sparsh from Automation Jinn! 🙌 Glad to see both you got this figured out.

@bocal - really appreciate you confirming that Sparsh’s suggested approach was the same as the solution you went with. This will be super helpful for others who come across it later!

Feel free to reach out anytime if we can help with anything else. In the meantime, happy Zapping! 😁⚡