import requests


def aud_to_usd(aud_amount, date):
    """Convert the AUD amount to USD."""
    r = requests.get("https://api.fixer.io/{}?base=USD".format(date))
    j = r.json()
    rate = j["rates"]["AUD"]
    return aud_amount / rate