"""Intro to Python - Week 1 - Quiz."""


# Question 5
def calculate_tax(income):
    """Implement the code required to make this function work.

    Write a function `calculate_tax` that receives a number (`income`) and
    calculates how much of Federal taxes is due,
    according to the following table:


    | Income  | Tax Percentage |
    | ------------- | ------------- |
    | <= $50,000    |        15%    |
    | <= $75,000    |        25%    |
    | <= $100,000   |        30%    |
    | > $100,000    |        35%    |

    Example:

    income = 30000  # $30,000 is less than $50,000
    calculate_tax(income)  # $30,000 * 0.15  = 4500 = $4,500

    income = 80000  # $80,000 is more than $75,000 but less than $80,000
    calculate_tax(income)  # $80,000 * 0.25 = 20000 = $20,000

    income = 210000  # $210,000 is more than $100,000
    calculate_tax(income)  # $210,000 * 0.35 = 73500 = $73,500
    """
    # Write your code here
    if income <= 50000:
        return income * 0.15
    elif income <= 75000:
        return income * 0.25
    elif income <= 100000:
        return income * .30
    else:
        return income * .35

@@ -973,31 +973,24 @@
         
-return 
 income *
  0.15%0A  
@@ -981,16 +981,17 @@
 income *
+=
  0.15%0A  
@@ -1022,31 +1022,24 @@
         
-return 
 income *
  0.25%0A  
@@ -1030,16 +1030,17 @@
 income *
+=
  0.25%0A  
@@ -1072,31 +1072,24 @@
         
-return 
 income *
  .30%0A   
@@ -1080,16 +1080,17 @@
 income *
+=
  .30%0A   
@@ -1096,24 +1096,42 @@
   else:%0A    
+    income *= .35%0A
     return i
@@ -1139,11 +1139,5 @@
 come
- * .35
 %0A

Update question_5.py