Short answer:
int d = 50;
string time = "00:02:04.05";
double v = d / TimeSpan.Parse(time).TotalHours;
This will give you speed ( v) in km / h.
A more object-oriented answer involves defining Value Object classes for Distance and Speed. Just like TimeSpan is a value object, you can encapsulate the concept of distance regardless of the measure in the distance class. Then you can add methods (or operator overloads) than calculate the speed using TimeSpan.
Something like that:
Distance d = Distance.FromKilometers(50);
TimeSpan t = TimeSpan.Parse("00:02:04.05");
Speed s = d.CalculateSpeed(t);
, . , , .