Used when you are simply talking about this number of days:
After five days of rain, we were ready for some sunshine.
Used when you consider something as 'belonging' to the five days
In five days' time, the snow had nearly gone.
Used when you consider 'five-day' as a single modifier:
We planned to attend the five-day seminar.
I hope this is helpful,
- For Teachers