Rule egoism
Rule egoism is the doctrine under which an individual evaluates the optimal set of rules based on whether conformity to those rules would bring the most benefit to themselves. An action, therefore, is right if it promotes one's welfare at least as well as any alternative rule available to them.