70-30 退税计算得到产品原价不含税

问题描述

有叫70%-30%的税。产品的基本价格将分别占 70% 和 30%。 70% 的税率为 5%,30% 的税率为 18%。这是计算的图像样本。

enter image description here

现在需要反向计算。我们有 24000.00273 和税务信息。 需要计算基础金额。

我们尝试了不同的方法,但金额不匹配。

解决方法

您通过以下方式计算总数:

total = base + ((0.05 * 0.7 * base) + (0.18 * 0.3 * base))

所以反过来是:

base = total / (1 + ((0.05 * 0.7) + (0.18 * 0.3)))

在JS中:

function reverse(amt,split1,split2,tax1,tax2) {
  return amt / (1 + ((split1 * tax1) + (split2 * tax2)));
}

var base = reverse(24000.00273,0.7,0.3,0.05,0.18);

console.log(base);

在 Excel 中(A6 中的公式):

=A1/(1+((A2*A4)+(A3*A5)))

enter image description here