avoid magic number for replay duration calculation
Merge pull request #3948 from Mailaender/replay-duration

Replay duration cleanup