<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def parse_duration(self):
 """ Corrects for any offsets that may have been created by loop and skip events """

        for edit in self.track_edits:
            if edit.edit_type == 'loopPlugin':
                self.duration += (
                    (edit.options['end'] -
                     edit.options['start']) *
                    float(edit.options['loop'])
                )