Send data to MQTT when timer is stop

Hello guys

i want to make app that have scheduled timer and when the timer
is equal to schedule, send data to mqtt ( this event work even when app is closed )

any idea how to do that??

this my block

Thank you