# Calculate number of hours/minutes between "now" and a future point in time

**URL:** <https://community.homey.app/t/calculate-number-of-hours-minutes-between-now-and-a-future-point-in-time/75617>\
**Category:** Flows\
**Created:** [January 26, 2023, 5:59pm UTC](https://community.homey.app/t/calculate-number-of-hours-minutes-between-now-and-a-future-point-in-time/75617 "2023-01-26T17:59:46Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![Jux2k2](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jux2k2/32/68336_2.png) [@Jux2k2](https://community.homey.app/u/Jux2k2)\
**Post date:** [January 28, 2023, 7:52pm UTC](https://community.homey.app/t/calculate-number-of-hours-minutes-between-now-and-a-future-point-in-time/75617/10 "2023-01-28T19:52:34Z")

</div>

Thanks guys, will look into this!

Im setting up a smart EV charging plan with this flow.  
From the moment I plug the car I dont care when it charges as long as its charged by 9 am.  
I can calculate how many hours of charge are required but still need to find that # of cheapest hours within the period from “now” and 9 am.

Also, I am running a peak shaving program so the charging speed may be drastically reduced to allow for heating to run. Each time the charging current is changed I need to update the charging plan (hence update the period duration).

I hope it makes sense 🙂

---

_[View the full topic](https://community.homey.app/t/calculate-number-of-hours-minutes-between-now-and-a-future-point-in-time/75617)._
