So I just started using Mathematica today and I'm trying to figure out how to get my units to come out correctly solving a simple kinematic equation. Searched through the domain on the website and I wasn't able to find anything that I could decipher.
ClearAll["Global`*"]
v1 = UnitConvert[Quantity[100, "kilometers / hour"], "meters / second"];
v2 = UnitConvert[Quantity[60, "kilometers / hour"], "meters / second"]
d = Quantity[1000, "meters"];
a = Quantity[-0.05, "meters / second^2"] ;
time = NSolve[v1 + a*t == v2, t]
I keep getting the output of {{t->222.2s/None}}. How can I fix the code to just get the output in seconds?