How does Capital Loss Carryover is calculated

When I filed taxes in 2023, I had Capital Loss Carryover of $19K ($6K for Short-Term and $16K for Long-Term)

 

For Tax Year 2024, I have a Long-Term Capital Gain of $15K and Short-Term Capital Gain of $10, how much can I claim?  

  1. Does Turbo Tax subtract $15,010 from the $19K and my new Capital Loss Carryover would be $3,990?   (19,000 – 15,010 = $3,990)
  2. If #1 is correct, can I still claim $3K Capital Loss?  $3,990 - $3,000 = $990 of Capital Loss Carryover.