I wonder if you can be more precise with length by using the value: 1048576 instead of 1000 you had in your original entry...

//echo -s $time($calc($sound($findfile(D:\Energy\Currents\,*,1)).length / 1000),nn:ss)

Use this instead: //echo -s $time($calc($sound($findfile(D:\Energy\Currents\,*,1)).length / 1048576),nn:ss)

The code could use some cleanup as well - others probably have something shorter and more efficient but if you don't want to change the entire coding just use what I suggested.

Good luck!

Talea