public static double? TotalSeconds(this TimeSpan? timeSpan) { return timeSpan.Select(x => x.TotalSeconds); }