show time range conditionally