Global variable of type time

i have implemented a countdown timer on my esphome device.
now i want to use the LED to signal that the countdown is almost reached, by flashing faster.
i’d like to derive the blinking delay from my global variable countdown_seconds, which is an ìnt.

unfortunately passing those derived values to a delay which expects a time does not work.
is there a way to solve this?