Ryobi = waste of money, granted it is not a lot of money, but still money wasted. Sure a quality tool will cost 3X's or more, but will last 10-20x's longer doing much more. Ryobi is made for and marketed to HO's who might use it every blue moon - not someone who'll be using it all day to the point of failure.
And the right tool for the job is another factor. If were talking about 'drills'???? A 12v impact driver will drive screws way more efficiently, and a plug-in right angle or hole hawg is far superior for say crancking out holes all day in rough framing. And hammer drill should only accept SDS bits or spline IMO, and also be plugged in. Otherwise my battery 'drill' only sees the light of day only for a few tasks involving drill bits 1/16 ~ 3/8", and a 7/8 carbide hole cutter. (ocassionaly a spade bit) And this one is only my third battery drill (14.4 dewalt) in roughly 15 years and with the batteries it came with - my current one is 4-5 years old. So is the impact driver it came with, and I use that all day long.
And if you want batteries to last a long time.... Any battery... Lithium ion or what have you.... READ THE MANUAL! First decrease in performance - put it on the charger. I keep spotting guys running thier batteries down to zero, even tapping the trigger and putting it in a corner.... Most of these idiots were not even alive when you actually "had to do that" with the old Makita "Green Banana" due to battery memory. Yet old myths and fabels die hard... So do your batteries when you do that. The voltage goes down, the amperage goes up (added heat on the motor too.), and has to be on the charger longer recovering from a hot - deep cycle drain. At that point the act of charging itself is even harmfull to the battery.