def get_moview_profit(movie_record):
    """ Computes profit from movie, or returns None if not applicable """
    if movie_record.gross is None or movie_record.budget is None:
        return None

    return movie_record.gross - movie_record.budget