0

You are close, but if you want to increase start_date until it matches end_date, you need to add to start_date, not end_date. You can reorder, and you should be able to simply add 1 day to start_date each iteration until it matches end_date.
(I'll leave it to you to check that end_date falls afte...