应纳税所得额计算 - 税务计算工具
该工具用于计算应纳税所得额,根据可支配补偿收入、免税收入、小计和准予扣除的捐赠额等信息进行计算。
计算公式为:应纳税所得额 = 可支配补偿收入 - 免税收入 - 小计 - 准予扣除的捐赠额。
如果计算结果小于0,则应纳税所得额为0。
以下代码展示了如何使用 JavaScript 计算应纳税所得额:
function calculateTaxableIncome() {
const { disposableCompensationIncome, taxExemptIncome, subtotal, deductionAllowedDonate } = this.form;
const taxableIncome = disposableCompensationIncome - taxExemptIncome - subtotal - deductionAllowedDonate;
return taxableIncome >= 0 ? taxableIncome : 0;
}
在上面的代码中,form 对象包含了用于计算应纳税所得额的必要信息。您可以根据实际情况修改这些信息,并使用该代码计算应纳税所得额。
原文地址: https://www.cveoy.top/t/topic/palF 著作权归作者所有。请勿转载和采集!