I understand why this doesn't work, because the variable t is just giving the valueAtTime function a ridiculously high integer-
t = timeToFrames() - 1;
thisComp.layer(index - 1).timeRemap.valueAtTime(t);
How can I re-write this to do what I want? I've been trying to understand how time works in expressions for some time and the fundamentals keep eluding me. What exactly is the time value returning in all those decimals?