rows_per_date function

Find active rows per date