def loantovalue(purchaseprice, financedamount):
    """Return ratio of financed amount to purchase price.

    :param purchaseprice: Contract price of property.
    :type purchaseprice: double
    :param financedamount: Amount of money borrowed.
    :type financedamount: double
    :return: double

    """
    return financedamount / purchaseprice