Dan 4:16

16 let his heart be changed from man’s, and let a beast’s heart be given to him; and let seven times pass over him. 

Let him be given the heart of a beast – Nebuchadnezzar is the prefiguration of “the beast” in Revelation.

seven times – he will remain a beast for “time, times and half a time,” 2 + 4 + 1= 7,  that is 42 months which are described in Rev 12-13, and 17.