Modified comparing timedelta to int