public function dateIntervalDiff(Period $period) { return $this->endDate->diff($this->withDuration($period->getDateInterval())->endDate); }