I will be editing this answer as soon as I get information that was missing from the question At zero hours, you would have $0 At 2 hours, $1 At 5 hours, $2.50 At 8 hours, $4. However, I think you may be missing the intial cost of renting the bike in your question