Parking in a student lot costs ​$1 for the first half hour and ​$1.50 for each hour thereafter. A partial hour is charged the same as a full hour. What is the longest time that a student can park in this lot for ​$7​?