If your requirement is that complex, you will almost certainly have to use the PICs internal timers rather than my original HPWM suggestion. Don't even think about calculating instruction cycles, too much going on to even consider that option.