You shouldn't be adding the markup expressed as a percentage. Instead, it should be the multiplier.
For example, if you want to sell your product at 100% markup, your price multiplier is 2.
Thus, in your case, if you want a 40% markup, your price multiplier should be set to 1.4 (not the 0.40).
Hope this helps!