No explanation needed:
vvar total = 1200.50;
var vatRate = 20; // Current value in UK
var vat = total;
var percent = 100 + parseInt(vatRate);
var newValue = vat / percent;
newValue *= 100;
vat = total - newValue;
console.log(vat); // 200.08
