added number of days to permit_up
fixed permit_up