def METHOD_NAME(self, result):
    time_spent = 0
    for task in result["tasks"]:
        if task["duration"] is not None:
            time_spent += task["duration"]
    if time_spent > 0:
        time_spent = time_spent / 8.0 / 60.0
    return "%.2f" % time_spent