<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def end_time(self):
 """ Return the end time of the current valid segment of data """

        return float(self.strain.start_time + (len(self.strain) - self.total_corruption) / self.sample_rate)