ndays had backward calculation