Just putting these links here for reference:
Summary of how SSA reduces your benefit if you claim while continuing to work, and credits those benefits back after you still working or reach full retirement age:
https://www.aarp.org/social-security/faq/withholding-while-working/
Example of how SSA calculates your benefit, using top 35 years of indexed earnings.
https://www.ssa.gov/OACT/ProgData/retirebenefit1.html
I’m trying to figure out the optimal strategy in my case. 62, plan to work another 10 years (I love what I do and, what’s worse, I think I’m addicted to it), S-Corp so I set my own W2 salary, spouse who I expect to outlive me. Basically trying to figure out if I should give myself a big raise.