ndays needed to be input to init