It also helps to be aware of difficult situations beforehand. If you know that you get angry when you talk with your father about specific topics, be prepared to keep a cool head. Be prepared to hear unpleasant things. Training my understanding often helped me in these situations. E.g. understand that we all sometimes think, act and speak in an unskillful way. Sometimes we all do make mistakes. We all have the right to have our own opinion, to make up our mind on our own. We all have the right to do mistakes.
If you get upset about your father because of what he says - well, understand that he does mistakes just like we all do.
Please don't punish yourself or feel bad about it. It is very good that you care about how you deal with other people and it is very good that you try to do better. Anger can be a great teacher, so see that as an excellent opportunity to learn!