Calculate Tax

Asked at Interactive Brokers · Coding Questions · Difficulty: Easy

Given a series of tax brackets and an income amount, calculate the total tax that needs to be paid. Each bracket applies to income above its lower limit and up to and including its upper limit. Implement a function to calculate the total tax payable for the given income.

Loading the problem…