is there some kind of formula that can be used to find out when this happens?

ie clocks changing as in Thanksgiving 4th thur in Nov