public function calculate(array $applicants, Collection $demographicQuestions): DemographicDataObject 	{ 		$result = new Collection; 		$total = null; 		$questionId = $demographicQuestions->firstWhere('code', $this->getMetaData()['code'])?->getKey();  		if ($questionId) { 			foreach ($applicants as $key => $genderApplicants) { 				$newdataObject = new QualificationDataObject;  				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 . 'QualificationData'}($newdataObject); 						} 					} 				} 			} 		}  		return $this->dataObject; 	}