The amount you've put into stocks changes when you buy or sell them.
If you buy, your invested amount goes up; if you sell, it goes down. Therefore, you should always match your invested amount with the number of shares you own and their purchase price.