Added control to render only the available number of days (lack of data does not break the page anymore)