Drivers hours dilemma

Quick one. I worked last mon, tues, and wed. then had 36 hours off until 10am friday. Then worked until 10am sunday with all relevant daily rests. Then back to work 10am monday. When do i need to take my next weekly rest and for how long?