playtime: calc average duration
improve playtime script