The VAT payable amount is calculated by output VAT(generated from sales) minus input VAT(generated from costs and expenses).