(A) Except as provided in Section 12-6-1210(F), an "S" Corporation having a valid federal election under the Internal Revenue Code Subchapter "S" is not subject to tax under this chapter to the extent it would be exempt from federal corporate income tax. Each shareholder shall include its share of South Carolina "S" Corporation income on the shareholder's income tax return. All of the provisions of the Internal Revenue Code apply to determine the gross income, adjusted gross income, and taxable income of an "S" Corporation and its shareholders subject to the modifications provided in Article 9 of this chapter and subject to allocation and apportionment as provided in Article 17 of this chapter.
(B) If Internal Revenue Code Section 1374 (Tax Imposed on Certain Built-In Gains and Capital Gains) or 1375 (Tax Imposed on Certain Passive Investment Income) imposes a federal income tax, a South Carolina tax is similarly imposed using the rates set forth in Section 12-6-530. If the exception in Internal Revenue Code Section 1374(c) is effective for federal tax purposes, then this exception is applicable for South Carolina income tax purposes.