Public/Get-AllegisJobScore.ps1
1 2 3 4 5 6 7 8 |
function Get-AllegisJobScore ($hiredate1, $hiredate2){ if ($hiredate1.ToString().length -ne 0 -and $hiredate2.tostring().length -ne 0){ return ([math]::pow(1.025,(-[math]::abs(([datetime]$hiredate2 - [datetime]$hiredate1).TotalDays)))),[math]::abs(([datetime]$hiredate2 - [datetime]$hiredate1).TotalDays) } return 0 } |