⌘K
Flycodx

Income Tax Slab Category Calculator

Income Tax Slab Category Calculator

MediumArrays0% accepted

Arjun is an income tax consultant in Mumbai. He calculates tax liability using Indian progressive tax slabs: 0-2.5L (0%), 2.5-5L (5%), 5-10L (20%), above 10L (30%). He needs total tax for multiple client incomes.

Approach

Given an array of annual incomes, calculate total income tax liability applying Indian income tax slab rates progressively.

Input

3 250000 500000 1000000

Output

125000
solution.py
Loading editor...
Test 1
Test 2
Test 3

Press Run to test your custom input, or Submit to judge against all test cases.

Sign in to continue

Create a free account to run code, submit solutions and track progress.

  • Free forever — no credit card
  • 10+ languages with live execution
  • Points, streaks & leaderboards
Auto Save OnLn 1, Col 1Spaces: 4UTF-8LFPython 3