Find price without VAT from price with VAT and VAT rate
I need to calculate what number my number was before it had added percentages.
I have a price including VAT, and I need to find out what to price was before VAT.
In Denmark our VAT Rate is $25\%$; So if I have a product which cost $100$DKK the total price would be $125$DKK; If I want to find the price without VAT I could say $125$DKK$\,\times\,0.80$.
The problem I have is that I have many differents VAT rates >>Germany have $19\%$<< .
So have can I find the price without VAT if I know the price with VAT and the VAT Rate?
Adding VAT can be done by multiply with $1+\text{vat rate}$, and removing it by dividing with $1+\text{vat rate}$.