# 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:** 9

<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:** [January 28, 2023, 6:56pm UTC](https://community.homey.app/t/calculate-number-of-hours-minutes-between-now-and-a-future-point-in-time/75617/9 "2023-01-28T18:56:01Z")

</div>

here’s a BLL example

> [@\[APP\]\[Pro\] Better Logic Library - For Users](https://community.homey.app/t/app-pro-better-logic-library-for-users/71876/28):
>
> Well, you can kind off, but not in the easy ‘formatting’ way: because i didn’t find a all-around solutions independend of locale and timezone. date('DATETIME', null, 'en') You will get a tag, you can use the last number if it’s like this. But if you get this, you will probably get the same result as me: So, the complete solution would be: new Date().setHours(18-Number.parseInt(\_.last(date('DATETIME', null, 'en'))),0,0,0) - Date.now() \< 15\*60\*1000; (this is true when less the…

---

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