added rotor grace timer calculation code with checks for missing info.

It should be the first line in the grace routine...