Several problems - you are trying to subtract a time from a string, which won’t work.
Even subtracting a time from a date doesn’t work either.
You can just get
boot time of operating system
but if you are on Windows, beware, because Windows only boots when you restart it (a shutdown just puts it into deep sleep and doesn’t reset the boot time)
More info on this subject here Get uptime of computer via releance