Calculate tax percentage

Hello,

Im using DAX2012 R2. I need to calculate sales tax percentage from a line from salesline. How should I go about doing this? There are just so many tax classes and I dont really know how to do it right…

Tax calc through X++

But that gives me the the tax amount (like 20 dollars from a 100 dollar line), but what if I need to know the percentage?