def calculate_coins(quarters, dimes, nickles, pennies):
    """Returns the amount of money in $ that user inserted. Input is the number of coins user inserted."""
    total = 0.25 * quarters + 0.10 * dimes + 0.05 * nickles + 0.01 * pennies
    return total