Capital losses can be used to offset capital gains. If there are excess losses, they can be used to offset up to $3,000 of ordinary income ($1,500 for married persons filing separately), which includes interest on bonds that are not tax-exempt. Any excess loss can be carried forward indefinitely and used in the same manner.
In 2007, up to $85,700 of foreign earned income is exempt from tax if a foreign residence or physical presence test is met.