public function calculate(array $applicants, Collection $demographicQuestions): DemographicDataObject 	{ 		$questionId = $demographicQuestions->firstWhere('code', $this->getMetaData()['code'])?->getKey(); 		$result = new Collection; 		$total = null;  		if ($questionId) { 			foreach ($applicants as $key => $genderApplicants) { 				$newdataObject = new YearsWorkingDataObject;  				foreach ($this->getMetaData() as $index => $single) { 					if ($index == 'code') { 						$result = $this->fetchAnswers($genderApplicants, $questionId);  						$total = $result->last()?->answer_value_count; 					}  					if ($index != 'code') { 						if ($total) { 							$newdataObject->{'set' . $index}(round(($result->firstWhere('value', $single)?->answer_value_count / $total) * 100)); 							$this->dataObject->{'set' . $key . 'YearsWorkingData'}($newdataObject); 						} 					} 				} 			} 		}  		return $this->dataObject; 	}