Get your taxes done using TurboTax

In the scenario you described, TurboTax will do the requisite calculations.