$start and $end are optional parameters in fetchByUserAndPeriod