def calculate_delay ( original , delay ) : original = datetime . strptime ( original , '%H:%M' ) delayed = datetime . strptime ( delay , '%H:%M' ) diff = delayed - original return diff . total_seconds ( ) // 60
python diffrent deltatime minutes
Calculate the delay
def calculate_delay(original, delay):
    """
        Calculate the delay
    """
    original = datetime.strptime(original, '%H:%M')
    delayed = datetime.strptime(delay, '%H:%M')
    diff = delayed - original
    return diff.total_seconds() // 60