So I've been researching different e-assist bikes (thanks for the help to my wonderful pals on BF

) & would like to have a "layman's explanation" about how to best recharge a battery.
Specifically, I would like to know when it's best to recharge the battery on an e-assist bike.
(off-topic example: I've been told that it's best to recharge a computer or cell phone's battery by letting the computer or phone get to its lowest battery "juice" level, then charge it. someone had said that that's because the battery will "memorize" the last levels and get used to that & only charge to that, so you'll never get the battery to its full battery potential). I don't know if that's a bunch of bologna or if it's true, so I'm asking all you guys who can explain what's the BEST thing to do for recharging a battery.
For instance, some of the e-bikes that I'm looking at are saying that the bike will go up to 30-40 miles per charge. If I only travel say 20 miles for the day, should I charge it when I get home or try to figure out a place to charge it when out & about. Or am I just making this whole thing too complicated. (I tend to do that

)