See https://www.irs.gov/publications/p502#en_US_2022_publink1000178972
View solution in original post