def get_penalty(start_time, submit_time):
    """
    :param start_time: time in DateTimeField
    :param submit_time: time in DateTimeField
    :return: penalty in seconds
    """
    return max(int((submit_time - start_time).total_seconds()), 0)