What is the maximum investment income I can make without my social security being taxed.

How do I figure the taxes on my social security income if I think my investment income will exceed the limit?  Assume social security is 20,000 and investment income is 60,000.