Fixing taxe calculation and stock loss

In this PR :
- The user can put the purchase price of a stock during the stock loss which was impossible
- The taxe calculation is now correct

Sorry for those merge message, I had some errors.