Skip to content
Toggle Navigation
Offices
Careers
FAQs
Toggle Navigation
Call
Email Us
Menu
Home
Services
Industries
Resources
About Us
News
AI Specialist
Free Consultation
Call
Email Us
Toggle Navigation
Home
Services
Industries
Resources
About Us
News
AI Specialist
Free Consultation
Tax Calculator
Home
•
Tax Calculator
Search for:
Tax Calculator
A4 Services Limited
2023-01-24T08:42:43+00:00
Tax rate:
Single
function calculateTax() { var taxRate = document.getElementById("tax-rate").value; var profit = document.getElementById("profit").value; var taxAmount; var singleRates = [[9101, 14500, 15, 1365], [14501, 19500, 25, 2815], [19501, 60000, 25, 2725], [60001, Infinity, 35, 8725]]; var marriedRates = [[12701, 21200, 15, 1905], [21201, 28700, 25, 4025], [28701, 60000, 25, 3905], [60001, Infinity, 35, 9905]]; var parentRates = [[10501, 15800, 15, 1575], [15801, 21200, 25, 3155], [21201, 60000, 25, 3050], [60001, Infinity, 35, 9050]]; var taxRates; switch (taxRate) { case "single": taxRates = singleRates; break; case "married": taxRates = marriedRates; break; case "parent": taxRates = parentRates; break; default: taxAmount = "Invalid tax rate"; } if (taxAmount == undefined) { for (var i = 0; i < taxRates.length; i++) { if (profit <= taxRates[i][0]) { taxAmount = 0; break; } else if (profit > taxRates[i][0] && profit <= taxRates[i][1]) { taxAmount = (profit - taxRates[i][0]) * (taxRates[i][2]/100) - taxRates[i][3]; break; } } } document.getElementById("tax-amount").value = taxAmount; }
Page load link