Manage the period (Data Query)