This is a quote from the book "The ​Virtue Of Selfishness" by Ayn Rand
...r one should help another person is by reference to one’s own rational self-interest and one’s own hierarchy of values: the time, money or effort one gives or the risk one takes should be pr oportionate to the value of the person in relation to one’s own happiness.

To illustrate this on the altruists’ favorite example: the issue of saving a drowning person. If the
person to be saved is a stranger, it is morally proper to save him only when the danger to one’s own life is minimal; when the danger is great, it would be immoral to attempt it: only a lack o...
read full book block explorer