from datetime import datetime


def get_minutes(time_end: datetime, time_start: datetime) -> int:
    """
    Converts 2 dates to minutes
    Thank you kite
    https://www.kite.com/python/answers/how-to-calculate-a-time-difference-in-minutes-in-python#:~:text=Subtract%20one%20datetime%20object%20from,the%20time%20difference%20in%20minutes.

    :param time_end: End timestamp
    :param time_start: Start timestamp
    :return: Minutes between them
    """
    time_delta = (time_end - time_start)
    total_seconds = time_delta.total_seconds()
    return int(total_seconds / 60)