import requests


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