# \[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:** 112

<div class="post-metadata">

**Author:** ![zakraket](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/zakraket/32/17470_2.png) [@zakraket](https://community.homey.app/u/zakraket)\
**Post date:** [May 13, 2022, 6:35am UTC](https://community.homey.app/t/app-pro-flow-utilities/53027/112 "2022-05-13T06:35:21Z")

</div>

I’m a but surprised (not for Flow Utilities, I didn’t know about the app before @Peter_Kawa mentioned it) that this type of calculation is “simply” not possible, and that this has not been requested a lot in the past. I’m sure there are lots of usecases for this type of calc.

Anyway, it could also work with numbers, if I use/set a numeric var and set the time as “1700” calculation the starting time is easy, but then the challenge is to convert 1700 (leavetime) - 180 (chargingminutes) = 1400 (startingtime) to a timevalue that Homey can use.  
@RobbertV**That (calculating 1400 to a timevalue) is then the only problem I need to solve**

The reason I want this is because I want my car to preferably charge on solar but I also want it to be full when I leave, so that it will be forced to charge to 100% at leave time.

edit: managed to fix my use case with Better Logic

> [@Configurable time trigger](https://community.homey.app/t/configurable-time-trigger/63532/9):
>
> Could it be done with Better Logic, specifically the Mathjs cards? Say I need to leave at 17:00, and my car needs 3 hours to charge to full (according to the car), I need the car to start charging at 14:00 I don’t really need to work with times; if I use numeric times, 1700 instead of 17:00, I can calculate ((1700\*60/100)-(180))/0.6 = 1400 I only need a flow that, f.e. every 5 minutes, converts current time to a number and if that number \> 1400, start charging. I found $timenow$ to convert c…

---

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