precised example of getPeriods('week')