from datetime import datetime


def day_end(date: datetime) -> datetime:
    """
    Calculates end of date

    Args:
        date (datetime): datetime object, for which to calculate the end of the day
    Returns:
        date_end (datetime): timestamp for end of the given date
    """

    return datetime(date.year, date.month, date.day, 23, 59, 59, 999999, tzinfo=date.tzinfo)