makes functions for filter by inspections date