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