when is the best time to castle
check for tactics first of course

Sometimes castling can change your position to a more vulnerable one. In most cases, it helps protect the king and join both rooks in a horizontal line. But it is always good to study the next future position. If you gain the skill of castling at the perfect moment,or unexpected moment, it can be decisive. Sometimes it is good quickly, and other times it can be good and "a salvation" in the end. A surprise tool.it's just my opinion.

Here, suporting my theory, I make castling after my opponent castling,and just in a decisive and perhaps unexpected moment, protecting myself against her attack while prep my counterattack https://www.chess.com/analysis/game/live/119671027584?tab=review

in the opening because ithe king is safe too early (5th-15th move)did you see my video lesson about castling

Well... yes and no. The Bird's opening (as 1.f4 is called, after Henry Bird) can work, but e4 isn't a part of it, now you have an enemy pawn right in front of your king and they can take g2 next. Also you gave a pawn and a pony as a present but gained only 1 pawn in return. Your bishop dies after Qd4+.
I'd say this game is lost in the opening.
Moving the e pawn 2 times and jumping your knight in front of that pawn were two big mistakes. How about jumping your knight there on move 2?
https://www.chess.com/openings/Birds-Opening
what time should you castle?