add checks that x or y is timedelta