ndays function

Number of Periods in Data