120|EXCEL – Get That Cheese!

BYU Student Author: @Mark
Reviewers: @Alex_Garrett, @Christian
Estimated Time to Solve: 120 Minutes

We provide the solution to this challenge using:

• Excel

Overview
You work for Tax Mouse, a local tax company that serves a community of mice. Every year, you collect data from your clients, including Total Income, Adjustments to Income, and Deductions that could be itemized. You also collect descriptive data about potential dependents each client has. Your job is to start with each client’s Total Income (in Cheese Bits) and use the data collected to calculate the Total Tax owed by each client. If you can correctly calculate all steps, then your Mouse Managers have promised a Chuck of Cheese as a bonus!

Instructions

You will need to add more columns and rows in the data to calculate each step correctly. The solution includes columns and rows not found in the original data. The gold columns should be filled out and are associated with the steps below, though some may not be used depending on your method.

1. Calculate the “Adjusted Gross Income” (AGI) by subtracting “Adjustments to Income” from “Total Income.”
2. Calculate the “Standard Deduction” based on the “Tax Status” of each client. “Standard Deduction” is included in the “Federal Tax Brackets” sheet.
3. Determine the amount of “Deductions Claimed.” All clients want to minimize taxes, so the “Deductions Claimed” will be the larger of “Standard Deduction” and “Itemized Deductions.”
4. Calculate “Taxable Income”, which is AGI reduced by any deductions claimed. However, “Taxable Income” cannot be less than 0. If it is, then put 0 as the Taxable Income.
5. Calculate the number of potential dependents for each client.
6. Determine whether each potential dependent qualifies as a dependent or not based on the rules at the top of the “Potential Dependents” sheet. Then, calculate the number of dependents for each client.
7. Calculate the “Tax before Credits”, which is based on the table in the “Federal Tax Brackets” sheet. For information on how tax is calculated from the table, see this link under the heading “How to calculate your effective tax rate”. The columns named “Tax from Exceeded Brackets” and “Tax from Ultimate Bracket” are included as intermediate steps used to calculate the “Tax before Credits.” You will need to manipulate the “Federal Tax Brackets” table.
• Creating a copy of the “Federal Tax Brackets” sheet is recommended before manipulating the table.
• There is no “right way” to manipulate the table. Manipulate it such that you will be able to pull the information you need. It is recommended that you include the accumulating amount of tax paid as the bracket is exceeded (ie, the income is greater than the range of the bracket).
• The solution uses If statements and lookup functions on the manipulated table to find the accumulated tax from the last exceeded bracket and the tax from the ultimate bracket. The sum of these two amounts is “Tax before Credits.”
8. Assume that each filer receives the full credit (2,500 Cheese Bits) for each of their dependents. Calculate the “Total Tax” by subtracting the “Credit for Dependents” from “Tax before Credits.” Assume the credits are nonrefundable (ie, “Total Tax” cannot be less than 0; put 0 if less than 0).
9. Answer the questions for the maze.

Note: Your tax amounts may not exactly match the solution because of rounding and other differences, but should be very close (ie, the sum of the “Total Tax” column should be within 100 Cheese Bits of the solution).

Data Files

Suggestions and Hints

The numbers before each hint correlate with the number for the step above.
6. A nested If statement will be useful.

7b. See the dropdown for an image of the solution’s manipulated tax bracket table:

Manipulated Federal Tax Brackets

7c. XLOOKUP is recommended for this step if using a table in the format of the 7b hint. Most arguments in XLOOKUP should be used, so examine them carefully. Depending on your table format, an INDEX MATCH combination could also be used. The solution uses a long formula with nested If statements and XLOOKUPs for finding the Tax from Exceeded Brackets, inserts a column after “Tax from Exceeded Brackets” to find the lower bound of the ultimate tax bracket (this formula is very similar to the “Tax from Exceeded Brackets” formula), and uses the “Tax Status” and lower bound to perform a lookup to find the marginal tax rate, which is necessary to find the “Tax from Ultimate Bracket.”

Solution

The total tax owed by all clients is 9,698,038 cheese bits!

Here is how I reached the solution! I think I may have overcomplicated some of the steps, but I got to the final answer.
Foust - Get That Cheese!.xlsx (116.9 KB)