Loose the AND ‘month is oktober’-cards and add:
WHEN
time i is 23:59
AND
End of month is today
THEN
Stop stopwatch
WHEN
stopwatch is stopped
THEN
get value of stopwatch
Write value to timeline
Wait 1s : AND ‘ventilator is on’ THEN start stopwatch
I did a simular thing but daily is this post: