[PATCH v6 4/7] taskschd: Implement IRepetitionPattern_get_Duration().