Fix colspan for cases when date isBefore/isAfter