Get your taxes done using TurboTax

Think of the income as going on a stack.  Stack up all your non-CG income first, then stack the CG on top.  In your case, the first $400 of CG on the stack is in the 0% range, and the rest of the stack is in the 15% range.