Tax calculation in cart to actually work properly with the Paypal module when tax is enabled

Rewrote tax calculation slightly to accurately calculate tax per product in the cart - not per group of products.
For Example:
(round(product * (tax% + 1),2)* quantity);
not
(round(product * (tax% + 1) * quantity,2);

Mrotacon on Forums.