# Conversion of time variable "hh:mm" into 2 numeric variables hour and minutes, and vice versa

**URL:** <https://community.homey.app/t/conversion-of-time-variable-hh-mm-into-2-numeric-variables-hour-and-minutes-and-vice-versa/76785>\
**Category:** Questions & Help\
**Created:** [February 23, 2023, 10:57am UTC](https://community.homey.app/t/conversion-of-time-variable-hh-mm-into-2-numeric-variables-hour-and-minutes-and-vice-versa/76785 "2023-02-23T10:57:18Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![OH2TH](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/oh2th/32/111414_2.png) [@OH2TH](https://community.homey.app/u/OH2TH)\
**Post date:** [February 23, 2023, 12:51pm UTC](https://community.homey.app/t/conversion-of-time-variable-hh-mm-into-2-numeric-variables-hour-and-minutes-and-vice-versa/76785/2 "2023-02-23T12:51:37Z")

</div>

Hi

I’m doing something similar here, but to heat up the outdoor spa:

[Setting a dynamic start time](https://community.homey.app/t/app-pro-action-scheduler-alarm-utilities/75592#setting-a-dynamic-alarm-time-11)

If you have a constant of 3 hours for the filtration then you. An use the Scheduler device’s action card for ” Schedule ahead of time” similar to the flow sample:

Schedule 90 minutes before 11:30 and repeat on …

Now if you have formula to get the number of minutes for your filter cycle, you can put that in a BLL expression (as a tag) Math.round((your formula for filter cycle in minutes)/2)

---

_[View the full topic](https://community.homey.app/t/conversion-of-time-variable-hh-mm-into-2-numeric-variables-hour-and-minutes-and-vice-versa/76785)._
