change the range to freetime instance as it's easier to work with the database