<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def pass_rate(self, include_skips=False, include_inconclusive=False, include_retries=True):
 """ Calculate pass rate for tests in this list. :param include_skips: Boolean, if True skipped tc:s will be included. Default is False :param include_inconclusive: Boolean, if True inconclusive tc:s will be included. Default is False. :param include_retries: Boolean, if True retried tc:s will be included in percentages. :return: Percentage in format .2f % """

        total = self.count()
        success = self.success_count()
        retries = self.retry_count()
        try:
            if include_inconclusive and include_skips and include_retries:
                val = 100.0*success/total
            elif include_inconclusive and include_skips and not include_retries:
                val = 100.0 * success / (total - retries)
            elif include_skips and include_retries and not include_inconclusive:
                inconcs = self.inconclusive_count()
                val = 100.0 * success / (total - inconcs)
            elif include_skips and not include_retries and not include_inconclusive:
                inconcs = self.inconclusive_count()
                val = 100.0 * success / (total - inconcs - retries)
            elif include_inconclusive and include_retries and not include_skips:
                skipped = self.skip_count()
                val = 100.0 * success / (total - skipped)
            elif include_inconclusive and not include_retries and not include_skips:
                skipped = self.skip_count()
                val = 100.0 * success / (total - skipped - retries)
            elif not include_inconclusive and not include_skips and include_retries:
                failures = self.failure_count()
                val = 100.0 * success / (failures + success)
            else:
                failures = self.clean_fails()
                val = 100.0 * success / (failures + success)
        except ZeroDivisionError:
            val = 0
        return format(val, '.2f') + " %"