from datetime import datetime


def day_offset(departure: datetime, arrival: datetime) -> int:
    """
    Return number of night shifts between two timestamps
    """
    return abs(arrival.date().day - departure.date().day)