Simple Understandable Python Code
\n\n# Code\n\nclass Solution:\n    def findPoisonedDuration(self, timeSeries: List[int], duration: int) -> int:\n        total = 0\n        l = len(timeSeries)\
\n\n# Code\n```\nclass Solution:\n    def findPoisonedDuration(self, timeSeries: List[int], duration: int) -> int:\n        total = 0\n        l = len(timeSeries)\n        for i in range(l):\n        \n            if i < l - 1:\n\n                if timeSeries[i] + duration - 1 < timeSeries[i+1]:\n                    total += duration\n                \n                else:\n                    total += timeSeries[i+1] - timeSeries[i]\n        \n            else:\n                total += duration\n        \n        return total\n```
['Python3']