Add date range and granularity inputs

Add date range and granularity inputs