script to sum total play duration