updated stats duration calculation