# \[APP\]\[Pro\] Flow Utilities

**URL:** <https://community.homey.app/t/app-pro-flow-utilities/53027>\
**Category:** Apps\
**Tags:** tools, homey-pro\
**Created:** [October 12, 2021, 10:05am UTC](https://community.homey.app/t/app-pro-flow-utilities/53027 "2021-10-12T10:05:25Z")\
**Posts on this page:** 1\
**Showing post:** 115

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [June 13, 2022, 2:02am UTC](https://community.homey.app/t/app-pro-flow-utilities/53027/115 "2022-06-13T02:02:18Z")

</div>

Hi guys,  
With help and inspiration of @zakraket 's flows to calculate with numeric time, I found a way to convert numeric time to time and vice versa; So we can calculate with time stamps. Maybe it can be of any help.  
(And @RonnyW , your code is impressive, but way out of my league 🙃 )

> [@Configurable time trigger](https://community.homey.app/t/configurable-time-trigger/63532/19):
>
> Got something wink Flow 1 - Convert departure time to numeric time (To be able to enter the departure time as normal time 00:00 format) . Script: // convertTime2NumericTime.js - Convert time to Numeric time (like: 15:30h -\> 1550) let timeIn = args[0] let timeNumeric = 0; if (timeIn == '' || timeIn == undefined) { console.log ('Missing argument'); return(false); } else { // If the hour is 1 - 9, add a leading 0 so time is formatted as f.i. 09:30 var charCount = Array.from…

The other used flows;  
The usecase is a calculation of:  
when to start charging a car,  
depending of the remaining charge time (reported by the charger, in minutes),  
and the departure time (user entered time).

 ![Screenshot from 2022-06-13 03-56-15](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/1/8140feaf4e7ba29c7dd6b825d8edb67defc341bb.png)

- The remaining charging time has changed:

- Departure time has changed:

---

_[View the full topic](https://community.homey.app/t/app-pro-flow-utilities/53027)._
