Added utils file
Dynamically selection of the time interval of interest