Check google calendar date with current date in node red

I am very new to Home assistant and have beginner level knowledge about scripting.

I keep travelling a lot coz of my work and hence my calendar events are different each day.

The automation I want is this:

once I leave my zone “home” , the automation should crosscheck my google calendar and check if it contains “flying” on my schedule . IF TRUE , I want to turn on a few devices before i get home from work as I enter the zone “home”.

However i don’t want the automation to run when my day’s schedule does not contain “flying”. and i leave and enter the zone “home”.

so far this is what i have done in node red

created a zone node -when dharmil leaves home
next connected a current state node - entity dharmil_calendar
then ,switch node with this condition- if msg.data.attributes.message “contains” “flying”. then the msg would pass.

after debugging i figured (msg.data.attributes.message) is where the “flying” or any other value is mentioned.

if these conditions are true , it turns on input boolean_dharmil_work.
then when i return home from work from another city and i enter the zone “home” it checks if the input boolean is ON, if so then it runs the desired automations.

so far this automation runs ok. the problem is … let’s say i finish work by 14:00 hrs today and tomorrow i start work at 8:00 hrs . in this case after 14:00 today the google calendar will output the event for tomorrow and now when i leave my home after 14:00hrs today the automation checks my schedule and sees “flying” which is for tomorrow and thinks i m flying and turns on the boolean even though i am in the city and sends a notification to my family that i have “left for the airport”.

is there a way we can check msg.data.attributes.start_time against the “current date” and parse it only if the date is same as today?

how to fix this ? thank you so much for all your help and sorry for this long post .

It would be great if you could copy a message from node red so that we can see how it’s set up.
And an export of the sequence