The Matlab program LjungqvistSargent_Figure2.m generates the figure in our paper ``Career Length: Effects of Curvature of Earnings Profiles, Earnings Shocks, Taxes, and Social Security'', by Lars Ljungqvist and Thomas J. Sargent; This is RED manuscript number RED-12-92R1. The corresponding editor is Gianluca Violante