Calculation Error on Additional Net Investment Income Tax of 3.8%

About to file when i found my additional net investment income tax of 3.8% of the amount over $250k included social security and wages. Turbo tax is taking the AGI amount from 1040 line 11, and inputting it directly onto line 13 on form 8960, whereas according to the irs this amount should be less social security, wages, etc which are not part of investment income. Anyone paying the additional Net Investment Income Tax of 3.8% is likely overpaying if relying on Tubotax