improved date ranges and added hours in PAindex