def ord_time(time):
    """Compute the ordinal number of a text milestone
    :param prio: string
    :rtype: integer
    """
    return {'day': 1, 'week': 2, 'month': 3, 'season': 4, 'year': 5}.get(time,
        5)
