I think you get the layer time like this:
var myComp = app.project.activeItem;
var myLayer = myComp.selectedLayers[0];
var myCurrTime = myLayer.time;
and do this to get the layer with the suffix:
var suffix = “_active”;
var myNewLayer = myComp.layer(myLayer.name + suffix);
Not tested, but should be close.
Dan