Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Weekly Challenges

Solve the challenge, share your solution and summit the ranks of our Community!

Also available in | Français | Português | Español | 日本語
IDEAS WANTED

Want to get involved? We're always looking for ideas and content for Weekly Challenges.

SUBMIT YOUR IDEA

Challenge #362: Capital Gains Tax when Selling a Home

NathalieHP
8 - Asteroid

My solution:

 

Spoiler
NathalieHP_0-1678735744891.png

 

jhonken
7 - Meteor
Spoiler
jhonken_1-1678753192193.png

 

this was a fun one! here are a couple IRS links to relevant info. I've run into this with having moved many times! https://www.irs.gov/taxtopics/tc701 and https://www.irs.gov/publications/p523  

balajilolla1
8 - Asteroid
Spoiler
Solution Attached

balajilolla1_0-1678759092158.png

 

AkimasaKajitani
17 - Castor
17 - Castor

My solution.

 

Spoiler
AkimasaKajitani_0-1678767629361.png

 

TonyAndriani
9 - Comet

My solution includes the exclusion. At first I thought that the provided solution was ignoring the capital gains exclusion, but then I realized that, if that was the case, then everyone would have had to pay capital gains. Looks like they may have misunderstood the exclusion and assumed that any home where total capital gains was less than the exclusion would not pay any tax, but if the total gains exceeded the exclusion amount then tax was due on the total.

 

Spoiler
TonyAndriani_0-1678769300228.png

 


 

 

niklas_greilinger
9 - Comet

My Solution.

Spoiler
niklas_greilinger_0-1678782173990.png

 

kelvin_law1
9 - Comet

Here is my solution:

Spoiler
kelvinlaw_0-1678786262005.png

 

hansfinesse
8 - Asteroid

A little long but gets the job done

sergejs_kutkovics
9 - Comet

My try! :)

Spoiler
sergejs_kutkovics_0-1678798069370.png

 

olga_strubbe
11 - Bolide
Spoiler
olga_strubbe_0-1678798303119.png

 

A neat challenge, thank you!  It looks like the Exclusion of Gains was not taken out in the output provided with the starter challenge.