Deductions & credits

179 is limited to business income but all business income net of business losses is taken into account. investment income (stocks, dividends, interest, royalties) is not business income.  wages are business income.

see IRS publication 946 for more information.

https://www.irs.gov/pub/irs-pdf/p946.pdf