Not that code behaved incorrectly, just curiosity about its algorithm. I thought since they wouldn't be using the hotel on last day of vacation, I subtracted one from hotel_cost argument and they said it's incorrect. When I deleted subtraction part, then they said its correct, but I think one should be subtracted from the argument. What am I thinking wrong?
Replace this line with your code.