Canada Ontaio Income Tax 2024
(((min(max(A, 0), 51446) - 0) * 0.0505 + (min(max(A, 51446), 102894) - 51446) * 0.0915 + (min(max(A, 102894), 150000) - 102894) * 0.1116 + (min(max(A, 150000), 220000) - 150000) * 0.1216 + (max(A, 220000) - 220000) * 0.1316) - min(11865, A) * 0.0505)