Here are some articles on how investment taxes work: