Jennifer is planning a holiday. The hotel costs $60 per night and her flights cost $150. She has a budget of $500 for hotel and flights. Up to how many nights can she afford in the hotel?