def uptime_seconds(uptime_list):
    """
    Convert a list of the following form:
    [years, weeks, days, hours, minutes]

    To an uptime in seconds

    """

    years = uptime_list[0]
    weeks = uptime_list[1]
    days = uptime_list[2]
    hours = uptime_list[3]
    minutes = uptime_list[4]

    # No leap day calculation
    days = years*365 + weeks*7 + days
    minutes = days*24*60 + hours*60 + minutes
    seconds = minutes*60

    return seconds