How does long term captical loss offset short term capital gain work in turbotax?

Hello, 

 

Suppose I have $10000 long term captical loss, $5000 long term capital gain, $15000 short term captial gain, how do I pay the tax?

 

From the existing posts it seems I should pay tax for the remaining $10000 short term captial gain part, is it right, and will turbox tax automatically offset the long term capital gain part ($5000)  then short term captial gain part ($5000)?  Is there any caveat that I should be aware of? 

 

Thanks!