Get primary and secondary track length

Hello,

I want to get sum of primary track length and it’s secondary length.

I already get sum of total primary track length and its secondary. However, I need to get primary track length to the start of the secondary track. How can I get it?