Python3 4 lines easy implemenatation.
\nclass Solution:\n    def findPoisonedDuration(self, timeSeries: List[int], duration: int) -> int:\n        \n        total_time = duration # for last poision\
```\nclass Solution:\n    def findPoisonedDuration(self, timeSeries: List[int], duration: int) -> int:\n        \n        total_time = duration # for last poision\n        for i in range(len(timeSeries)-1):\n            total_time += min(duration, (timeSeries[i+1] - timeSeries[i]))   \n        return total_time\n```
[]