to calculate the length of a song in seconds all you need is samplerate, (bitspersample / 8 ) and the size of the song in bytes. Sample rate is samples per second so knowing that, if the size of the song is 4.194.304 bytes you divide byte 2 bytes, which is the size of a single sample, that gives you 2.097.152 samples total, now you know that the sample rate is 22050 samples per second so divide the number of samples with that number will give you seconds in this case that will be 95 seconds. All this are for a single channel if you know the number of channels then simple divide the total samples or the seconds you have calculated by the number of channels and you should rich the correct answer.
Now that i said that you have to keep in mind that if the song is recorded using VBR all the above is just an aproximation.
Engligh only, no SEO spam