If I've interpreted correctly (harder without file) I would say first adjust column C such that

C2: =SUM(MAX(1,B1),C1)
copied down
(thus C reflects the cumulative start day of the week)

Then

F2: =LOOKUP(E2,$C$2:$C$21,$A$2:$A$21)
copied down
adjust ranges to suit obviously