private function calculateNumberOfDays($numberOfDays)
    {
        $endDate = Carbon::today();
        $startDate = Carbon::today()->subDays($numberOfDays);

        return [$startDate, $endDate];
    }
private function calculateNumberOfDays($numberOfDays)
    {
        $endDate = Carbon::today();
        $startDate = Carbon::today()->subDays($numberOfDays);

        return [$startDate, $endDate];
    }
private function calculateNumberOfDays ( $ numberOfDays ) { $ endDate = Carbon :: today ( ) ; $ startDate = Carbon :: today ( ) -> subDays ( $ numberOfDays ) ; return [ $ startDate , $ endDate ] ; }
Returns an array with the current date and the date minus the number of days specified.

@param $numberOfDays

@return array
Returns an array with the current date and the date minus the number of days specified .