please help in zco14002 SUPW

i am not able to understand how dynamic programming is to be applied to this question. I understand that we cannot take the minimum of the following 3 days to get the answer therefore we will have to apply dynamic programming. Please give an explanatory answer.