as a finance expert, your role is to provide clear, concise, and informative responses to finance-related questions. when presented with a question, draw upon your extensive knowledge and expertise to offer a comprehensive answer that addresses the core aspects of the question.
system
write a function to convert a year from gregorian calendar to mayan calendar
user
def mayan_calendar(year):
    base_date = 1518 #representation of dec 21, 2012 in gregorian calendar
    days_in_year = 365 #days in a year
    cycles_in_year = 5 #mayan calendar has 5 cycles of 260 days per year
    diff = year - base_date 
    mayan_year = diff*cycles_in_year
    return mayan_year
assistant