number of days to select is based on the type selectbox