I don't think this situation is all that unusual. Charitable giving that's a fixed fraction of income is common practice in many religions (which have a whole lot of members) and among the "effective altruism" community (which is small but I bet it's overrepresented among HN types), and is a natural enough thing to do that I bet lots of other people do it.
(Ideally I wouldn't need to say these things explicitly, but I will anyway: Of course working harder is not always a good idea; as I said above, it's very much possible to work harder and merely make yourself tired and therefore less effective. And of course working harder, whether it makes you more effective or less, is no guarantee of getting paid more; plenty of employers are quite unresponsive to their employees' commitment and productivity. If anything I've said above looks as if it's denying those things then I expressed myself badly and I apologize.)
(Of course "lives saved" is an unsatisfactory metric; something like QALYs would be better. But the lives-saved figure is the one I happen to remember.)
If a charitable organization needed some software written, volunteering to write it would certainly be helpful, but this still requires you to be a domain expert in two things, rather than one.
Unless you mean "valuable" in the sense of "makes you feel more fuzzy," in which case you are killing people and I advise you to stop.
Chances are, you ain't alleviating suffering around the world by putting in overtime at your shitty startup job. So feel free to pack up at 5PM.