If you are at the terminal at 5PM for 7PM international flight, you should be ok.
If you think you are going to return your rental car at 5PM for 7PM flight, you will most likely miss the baggage cutoff and not allowed to check your bags. Add another 45 minutes if you are returning rental car.