Fix typo in getDuration docs