use a variable for dinamic data range calculation