def METHOD_NAME(exercise: Dict[str, Any]) -> datetime.datetime:
    deadlines = _get_exercise_common_deadlines(exercise)
    personal_deadline = exercise['personal_deadline']
    if personal_deadline is not None:
        deadlines.append(personal_deadline)
    return max(deadlines)