$dateinput = read-host "Datum:" $then = [dateTime]::Parse($dateinput) $now = [dateTime]::Now ($then - $now).Seconds