Fixing pauses calculation