async def amount_to_secs(amount: tuple) -> int:
    """Resolves one unit to total seconds.

    Args:
        amount (``int``, ``str``):
            Tuple where str is the unit.

    Returns:
        ``int``:
            Total seconds of the unit on success.

    Example:
        >>> await amount_to_secs(("1", "m"))
        60

    """
    num, unit = amount

    num = int(num)
    if not unit:
        unit = 's'

    if unit == 's':
        return num
    elif unit == 'm':
        return num * 60
    elif unit == 'h':
        return num * 60 * 60
    elif unit == 'd':
        return num * 60 * 60 * 24
    elif unit == 'w':
        return num * 60 * 60 * 24 * 7
    else:
        return 0