def return_ttl(name: str) -> int:
    """
        **return_ttl**
            returns ttl for cache depending on long, short, and medium

    :param name: string -> period = short, medium, long
    :return: int -> time to live
    """
    cache_ttl_short: int = 1800  # (60*60 * 0.5) 30 minutes
    cache_ttl_medium: int = 3600  # (60 * 60) 1 hour
    cache_ttl_long: int = 5400  # (60 * 60 * 1.5) 1 hour 30 minutes

    if name == "long":
        return cache_ttl_long
    elif name == "short":
        return cache_ttl_short
    elif name == "medium":
        return cache_ttl_medium
    return cache_ttl_short