Problem with using RTC and timer counter together

Hello, I am sorry you are having this problem, and your description is a bit abstract, I would like to get your program to analyze and solve it. Thanks