No, you need to take the rest within 24 hours of when you start work. You don’t even really need to think about it in terms of days of the week.
You worked for 13h 15m and then came in 20 minutes earlier, so your rest was 10h 25m. Once you start a new shift at a compliant time then you are concerned with the 24 hours from the new start time.
It can be dangerous to think about it in terms of keeping a shift under 13 because your start time the following day can come into play if you bring it forward at all.