I'm trying to filter records by date where I input the ending date and the starting date is calculated by minus specified time.