add config parameter widthInDays to configure the width in days