Today I created a powershell script to generate the tenancy agreement end date given the start date.
function Get-BPTenancyDate($var_dateTenancyStarts,$var_TenancyYears)
{
#Gets the tenance agreement end date
Write-Host "Tenancy Duration for $var_TenancyYears years from this date $var_dateTenancyStarts :"( [datetime]::Parse($var_dateTenancyStarts)).AddYears($var_TenancyYears).adddays(-1) -BackgroundColor Green
}
Get-BPTenancyDate -var_dateTenancyStarts "01/07/2008" -var_TenancyYears 2