Formula

What IS the “complicated formula Social security uses to determine how much of your social security income is taxable?  Or WHERE can I find this “complicated formula”?