protected double TimeFromPercent(double percent) { return Duration * Math.Max (0, Math.Min (1, percent)); }