Get your taxes done using TurboTax

it's better to have the custodian calculate the earnings since it is a complicated formula.

and you will get the correct 1099-R about it.