How often and for how long turn the relay on

First, please remebler to format your pasted code for proper forum viewing - I have already edited you post above, look back at it to see how it is done.

Blynk - FTFC

Secondly, for your issue… This is more a “how to” programming issue then Blynk specific.

You will need to study up on how to use BlynkTimer even more then you do now, as that can do everything you are asking for.

Search this forum for other BlynkTimer delay and Relay based timing solutions. There are there are some good examples already provided.

Here is one example

And another