Is this legal?

I thought the daily rest was within a 24 hour period. So how does it count between shifts? For example i had 9hrs rest between mon/tue… wed/thurs… and thurs/fri ■■

Sent from my iPhone using Tapatalk