# Flow - day of month 1 less than variable

**URL:** <https://community.homey.app/t/flow-day-of-month-1-less-than-variable/79615>\
**Category:** Flows\
**Created:** [April 22, 2023, 7:40pm UTC](https://community.homey.app/t/flow-day-of-month-1-less-than-variable/79615 "2023-04-22T19:40:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![erlend\_oyen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/erlend_oyen/32/18133_2.png) [@erlend\_oyen](https://community.homey.app/u/erlend_oyen)\
**Post date:** [April 22, 2023, 7:40pm UTC](https://community.homey.app/t/flow-day-of-month-1-less-than-variable/79615/1 "2023-04-22T19:40:51Z")

</div>

Solved by setting today’s day of the month as variable with homey script and then use logic flow card to to the rest.

Hi

what’s the simplest way to use day of month 1 less than a variable.

let’s say the variable is day 12 of the month and i want the flow to execute 1 day before. (11)

or define current day of month with homey script
