why not using RTC. Read actual time, then do the math according to your need... just need to poll the RTC register.

OR use the AC line as time base then count secondes+minutes+hours.

OR use the internal tick to generate 1 seconde time base then...

OR a PAUSE loop then...

It's all depend of what else your PIC will need.