• + 0 comments
    def libraryFine(d1, m1, y1, d2, m2, y2):
        # Write your code here
        if y1 > y2:
            return 10000
        
        if y1 == y2:
            if m1 == m2:
                if d1 > d2:
                    return 15 * abs(d2-d1)
            elif m1 > m2:
                return 500 * abs(m2-m1)
                
        return 0