In your expression, you can use date arithmetic something like this:
$endDate <= addMinutes(addMonths($startDate,1),-1)
This takes the start date, adds one month and then subtracts one minute. Note that depending how precise you need to be, you could use addSeconds or addMilliseconds instead of AddMinutes.