I would maybe spend one year in prison for 40M$. If I actually had a button in front of me that would — if I pressed it — land me in prison for a year and got me 40M$ when I get out, I still wouldn't do it. But I can see the point there. No way would I spend a second year in prison for another 40M$ after that, not even a year for the remaining 360M$. The subjective value of money does not scale linearly. But then again, people are greedy and like big numbers and other unimportant things and they do give away their valuable time of life for these unimportant things instead of using it for actually valuable things.
>40M$ button
You just reminded me of this old internet horror story https://www.youtube.com/watch?v=3h-cAbOyRXc