Problem with dbot trading expiration time

How do I make expiration time in Dbot? Here is a fixed time of 1,2,3 minutes. It is seen that when the bot is run, the bot takes 1,2,3 seconds to load. In this, the bot is taking trades after 1,2,3 seconds, so the trade is not being placed at the right time. Now I want the trade to be opened with the time of the candlestick, that is, if the time of the candlestick is 60 seconds left, the bot will take the trade for 60 seconds, and if the time of the candlestick is 50 seconds left, the bot will take the trade for 50 seconds, and if the time of the candlestick is 40 seconds left, the bot will take the trade for 40 seconds.