If you are just warming up on the bike, then 5 minutes is okay first. But better to lift weights first, then bike if you are biking for more than 10 minutes. Biking will deplete your energy for weight lifting. While weight lifting will still allow you to bike. Ideal rest is one day, but if it is the same day, just a few minutes to stay warmed up, and drink water.