Sound.length Formatting

I’m trying to format the value returned by sound.length. Here is my code but it is calculating the value wrong. Any help would be appreciated.

375040 passed in = 6250:40
The length of the song should be 6:15

Thanks,
Saveth


private function formatTime(value:int):String {
    var result:String = (value % 60).toString();
    if (result.length == 1) {
     result = Math.floor(value / 60).toString() + ":0" + result;
    } else {
     result = Math.floor(value / 60).toString() + ":" + result;
    }
    return result;
   }