According to IRC section 1366(d) the aggregate amount of losses and deductions an S corporation shareholder may take into account for any taxable year may not exceed the sum of the adjusted basis of ...