The answer to that, is in the original post.
"can someone give me a snippet to convert seconds to minutes"
I'm not offended. It just seemed rather pointless for you to post about me posting something that you thought was pointless. When I see people do that, and they have a really large post count, well.... generally I just assume they post just to post. It was rather unnecessary.
Had my post just consisted of the "$duration()" acknowledgement, then I would see a reason. I intentionally included that in the first half of my original post so that people would not jump on the fact that I was supplying the snippet that the person requested. ( If I did that, someone would have just said "Didn't you read the reply above you? $duration()!" )
Not meaning to belittle you, but that's the way it came off to me.
Edit = I should probably be a little more precise. If I supply something when a person asks a question, it's generally so they can see what's going on and how it's done. The script itself is simple math with the useage of modulus. Many people are unaware of the modulus.
Look at the bright side, if this person ever needs to break numbers down based on certain criteria, the snippet I gave addresses the question of "how can I do it?"
Edit2 = Umn, wow. I must have been tired when I wrote that code. I put $calc() inside of $calc() in my code. heh.