I got a knot in my brain and can't think of this - I'm sure it's quite simple and I'll be like "duh!" once someone points it out to me...
So the problem is as follows:
An audio file is 30 seconds long. That's 100% of the audio file.
If I play the file at 50% of it's speed it'll be 60 seconds long.
At what percentage do I need to play the song to make it X seconds long? (I am looking for 46.56)
Or in other words if 30 is to 100 the same as 60 is to 50, then what would 46.56 be equivalent to?
To make it $X$ seconds long, play it at $\frac{30}{X}\times 100$ per cent speed.