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.
What does the variable h1d contain? Going forward it is very helpful to use meaningful variable names