I did the calculations myself and the function returns the correct values. I'm not sure wht I keep getting errors similar to the below:

Oops, try again. trip_cost('Charlotte', 5, 10) returned 1113 instead of the correct value 1073

Can someone please take a look at my code and advise? I know that there is a very similar post to mine, but that is for the previous exercise, where we don't have the additional variable spending_money.

Thanks!

```
def hotel_cost(nights):
return 140*nights
def plane_ride_cost(city):
if city=="Charlotte":
return 183
elif city=="Tampa":
return 220
elif city=="Pittsburgh":
return 222
elif city=="Los Angeles":
return 475
def rental_car_cost(days):
cost =40*days
if days>=7:
cost-=50
elif days>=3 and days<7:
cost-=20
return cost
def trip_cost(city, days, money):
spending_money=money*days
return plane_ride_cost(city)+hotel_cost(days)+rental_car_cost(days)+spending_money
print ("The hotel cost for 7 days is: ", hotel_cost(7))
print ("The plane ride to Pittsburgh costs: ", plane_ride_cost("Pittsburgh"))
print ("The cost of renting a car for 7 days is: ", rental_car_cost(7))
print ("Your trip will cost you ", trip_cost("Pittsburgh", 7, 110), "if spending 110/day")
```